@stencil/core 5.0.0-rc.8 → 5.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-BA_FU9aB.mjs → client-DkvdNuPu.mjs} +5 -5
- package/dist/compiler/browser.d.ts +23 -5
- package/dist/compiler/browser.js +47 -8
- package/dist/compiler/index.d.mts +2 -2
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-C9TOL5Mj.mjs → compiler-JKsb5iht.mjs} +191 -90
- package/dist/declarations/stencil-public-compiler.d.ts +25 -7
- package/dist/{index-CFiy6MZ3.d.mts → index-BxnfbT3a.d.mts} +25 -7
- package/dist/{index-CViiWNQ9.d.mts → index-xOwTL_5Z.d.mts} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-Bsfi3pOs.mjs → node-C59vQZNg.mjs} +1 -1
- package/dist/runtime/client/lazy.js +174 -137
- package/dist/runtime/client/runtime.js +174 -137
- package/dist/runtime/index.js +174 -137
- package/dist/runtime/server/index.mjs +174 -137
- package/dist/runtime/server/runner.mjs +80 -5
- 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.mjs +175 -138
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import { A as SSR_PROP_REF_PREFIX, D as HYDRATE_ID, E as HYDRATE_CHILD_ID, O as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, k as SSR_PROPS_REGISTRY_KEY, w as CLIENT_BUILD_FLAGS } from "./client-
|
|
2
|
+
import { A as SSR_PROP_REF_PREFIX, D as HYDRATE_ID, E as HYDRATE_CHILD_ID, O as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, k as SSR_PROPS_REGISTRY_KEY, w as CLIENT_BUILD_FLAGS } from "./client-DkvdNuPu.mjs";
|
|
3
3
|
import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, J as STANDALONE, L as EVENT_FLAGS, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, T as COLLECTION_APP_DATA_FILE_NAME, U as LOADER_BUNDLE, X as STYLE_EXT, Y as STATS, a as isBoolean$1, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString$1, g as sortBy, i as fromEntries, l as isIterable, m as noop, p as mergeIntoWith, r as flatOne, t as dashToPascalCase, u as isNumber$1, v as toDashCase, w as COLLECTION, y as toTitleCase, z as GLOBAL_STYLE } from "./helpers-pTCZhNi0.mjs";
|
|
4
4
|
import { C as isRootPath, D as byteSize, E as stringifyRuntimeData, O as escapeRegExpSpecialCharacters, S as splitLineBreaks, _ as createOnWarnFn, a as getRolldownSourceMapOptions, c as relativizeSourceMap, d as map, f as ok, g as loadTypeScriptDiagnostics, h as loadTypeScriptDiagnostic, i as getInlineSourceMappingUrlLinker, l as rolldownToStencilSourceMap, m as augmentDiagnosticWithNode, n as validateComponentTag, o as getSourceMappingUrlForEndOfFile, r as isRemoteUrl, t as validateComponentModes, u as err, v as isRolldownError, w as formatComponentRuntimeMeta, x as normalizeDiagnostics, y as loadRolldownDiagnostics } from "./validation-C1mr0klL.mjs";
|
|
5
5
|
import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative$1, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join$2, V as relativeImport, Y as resolve$2, Z as buildError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "./util-CP6-333M.mjs";
|
|
6
|
-
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-
|
|
6
|
+
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-C59vQZNg.mjs";
|
|
7
7
|
import ts, { default as ts$1 } from "typescript";
|
|
8
8
|
import { readFileSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
@@ -461,9 +461,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
461
461
|
};
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/version.ts
|
|
464
|
-
const version = "5.0.0-rc.
|
|
465
|
-
const buildId = "
|
|
466
|
-
const vermoji = "
|
|
464
|
+
const version = "5.0.0-rc.9";
|
|
465
|
+
const buildId = "1795554832";
|
|
466
|
+
const vermoji = "🏐";
|
|
467
467
|
/**
|
|
468
468
|
* Get the installed version of a tool/dependency.
|
|
469
469
|
* Handles packages with exports maps that point to subdirectories.
|
|
@@ -9008,8 +9008,57 @@ const ProgressTask = {
|
|
|
9008
9008
|
const AUTO_GENERATE_COMMENT = `<!-- Auto Generated Below -->`;
|
|
9009
9009
|
const NOTE = `*Built with [StencilJS](https://stenciljs.com/)*`;
|
|
9010
9010
|
//#endregion
|
|
9011
|
+
//#region src/compiler/docs/jsdoc-links.ts
|
|
9012
|
+
/**
|
|
9013
|
+
* Matches JSDoc inline link tags that reference a URL, in the
|
|
9014
|
+
* `[label]{@link url}`, `{@link url|label}` or `{@link url label}` form.
|
|
9015
|
+
*/
|
|
9016
|
+
const JSDOC_URL_LINK_REGEX = /(?:\[([^\]]*)\])?\{@link\s+(https?:\/\/[^\s|}]+)(?:\s*[|\s]\s*([^}]*?))?\s*\}/g;
|
|
9017
|
+
/**
|
|
9018
|
+
* Converts JSDoc inline link tags that reference a URL into markdown links.
|
|
9019
|
+
*
|
|
9020
|
+
* Documentation output targets (docs-readme, docs-json, docs-vscode) treat their
|
|
9021
|
+
* `docs` fields as markdown, so URL-based `{@link}` tags are converted so they
|
|
9022
|
+
* render as links.
|
|
9023
|
+
*
|
|
9024
|
+
* Symbol links like `{@link MyClass#foo}` are left untouched, since resolving them
|
|
9025
|
+
* to a URL would require type information the docs generators do not have.
|
|
9026
|
+
*
|
|
9027
|
+
* @param text the JSDoc text to convert
|
|
9028
|
+
* @returns the text with URL-based `{@link}` tags converted to markdown links
|
|
9029
|
+
*/
|
|
9030
|
+
const convertJsdocLinksToMarkdown = (text) => {
|
|
9031
|
+
if (!text || !text.includes("{@link")) return text;
|
|
9032
|
+
return text.replace(JSDOC_URL_LINK_REGEX, (_match, prefixLabel, url, label) => {
|
|
9033
|
+
return `[${prefixLabel?.trim() || label?.trim() || url}](${url})`;
|
|
9034
|
+
});
|
|
9035
|
+
};
|
|
9036
|
+
/**
|
|
9037
|
+
* Converts URL-based `{@link}` tags in the text of JSDoc tag infos (e.g. the texts
|
|
9038
|
+
* behind `@deprecated` or `@returns`) into markdown links, so tag-derived docs
|
|
9039
|
+
* fields render as links too.
|
|
9040
|
+
* @param tags the JSDoc tag infos to convert
|
|
9041
|
+
* @returns new tag infos with URL-based `{@link}` tags converted to markdown links
|
|
9042
|
+
*/
|
|
9043
|
+
const convertJsdocTagsToMarkdown = (tags) => {
|
|
9044
|
+
return tags.map((tag) => ({
|
|
9045
|
+
...tag,
|
|
9046
|
+
text: convertJsdocLinksToMarkdown(tag.text)
|
|
9047
|
+
}));
|
|
9048
|
+
};
|
|
9049
|
+
//#endregion
|
|
9011
9050
|
//#region src/compiler/docs/generate-doc-data.ts
|
|
9012
9051
|
/**
|
|
9052
|
+
* Converts the text and tag texts of a component's JSDoc into markdown, so every
|
|
9053
|
+
* docs field derived from it renders URL-based `{@link}` tags as markdown links.
|
|
9054
|
+
* @param jsdoc the JSDoc to convert
|
|
9055
|
+
* @returns the converted JSDoc
|
|
9056
|
+
*/
|
|
9057
|
+
const convertCompilerJsDoc = (jsdoc) => ({
|
|
9058
|
+
text: convertJsdocLinksToMarkdown(jsdoc.text),
|
|
9059
|
+
tags: convertJsdocTagsToMarkdown(jsdoc.tags)
|
|
9060
|
+
});
|
|
9061
|
+
/**
|
|
9013
9062
|
* Generate metadata that will be used to generate any given documentation-related
|
|
9014
9063
|
* output target(s)
|
|
9015
9064
|
*
|
|
@@ -9060,32 +9109,35 @@ const getDocsComponents = async (config, compilerCtx, buildCtx) => {
|
|
|
9060
9109
|
const usagesDir = normalizePath(join$2(dirPath, "usage"));
|
|
9061
9110
|
const readme = await getUserReadmeContent(compilerCtx, readmePath);
|
|
9062
9111
|
const usage = await generateUsages(compilerCtx, usagesDir);
|
|
9063
|
-
return moduleFile.cmps.filter((cmp) => !cmp.internal && !cmp.isCollectionDependency).map((cmp) =>
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9112
|
+
return moduleFile.cmps.filter((cmp) => !cmp.internal && !cmp.isCollectionDependency).map((cmp) => {
|
|
9113
|
+
const docs = convertCompilerJsDoc(cmp.docs);
|
|
9114
|
+
return {
|
|
9115
|
+
dirPath,
|
|
9116
|
+
filePath: normalizePath(relative$1(config.rootDir, filePath), false),
|
|
9117
|
+
fileName: basename$1(filePath),
|
|
9118
|
+
readmePath,
|
|
9119
|
+
usagesDir,
|
|
9120
|
+
tag: cmp.tagName,
|
|
9121
|
+
readme,
|
|
9122
|
+
overview: docs.text,
|
|
9123
|
+
usage,
|
|
9124
|
+
docs: generateDocs(readme, docs),
|
|
9125
|
+
docsTags: docs.tags,
|
|
9126
|
+
encapsulation: getDocsEncapsulation(cmp),
|
|
9127
|
+
dependents: cmp.directDependents,
|
|
9128
|
+
dependencies: cmp.directDependencies,
|
|
9129
|
+
dependencyGraph: buildDocsDepGraph(cmp, buildCtx.components),
|
|
9130
|
+
deprecation: getDocsDeprecationText(docs.tags),
|
|
9131
|
+
props: getDocsProperties(cmp),
|
|
9132
|
+
methods: getDocsMethods(cmp.methods),
|
|
9133
|
+
events: getDocsEvents(cmp.events),
|
|
9134
|
+
styles: getDocsStyles(cmp),
|
|
9135
|
+
slots: getDocsSlots(cmp.htmlSlots, docs.tags),
|
|
9136
|
+
parts: getDocsParts(cmp.htmlParts, docs.tags),
|
|
9137
|
+
customStates: getDocsCustomStates(cmp),
|
|
9138
|
+
listeners: getDocsListeners(cmp.listeners)
|
|
9139
|
+
};
|
|
9140
|
+
});
|
|
9089
9141
|
}));
|
|
9090
9142
|
return sortBy(flatOne(results), (cmp) => cmp.tag);
|
|
9091
9143
|
};
|
|
@@ -9103,6 +9155,7 @@ const getCssOnlyDocsComponents = async (config, compilerCtx, buildCtx) => {
|
|
|
9103
9155
|
const usagesDir = normalizePath(join$2(dirPath, "usage"));
|
|
9104
9156
|
const readme = await getUserReadmeContent(compilerCtx, readmePath);
|
|
9105
9157
|
const usage = await generateUsages(compilerCtx, usagesDir);
|
|
9158
|
+
const docs = convertCompilerJsDoc(cmp.docs);
|
|
9106
9159
|
return {
|
|
9107
9160
|
dirPath,
|
|
9108
9161
|
filePath: normalizePath(relative$1(config.rootDir, filePath), false),
|
|
@@ -9111,21 +9164,21 @@ const getCssOnlyDocsComponents = async (config, compilerCtx, buildCtx) => {
|
|
|
9111
9164
|
usagesDir,
|
|
9112
9165
|
tag: cmp.tagName,
|
|
9113
9166
|
readme,
|
|
9114
|
-
overview:
|
|
9167
|
+
overview: docs.text,
|
|
9115
9168
|
usage,
|
|
9116
|
-
docs: generateDocs(readme,
|
|
9117
|
-
docsTags:
|
|
9169
|
+
docs: generateDocs(readme, docs),
|
|
9170
|
+
docsTags: docs.tags,
|
|
9118
9171
|
encapsulation: getDocsEncapsulation(cmp),
|
|
9119
9172
|
dependents: cmp.directDependents,
|
|
9120
9173
|
dependencies: cmp.directDependencies,
|
|
9121
9174
|
dependencyGraph: buildDocsDepGraph(cmp, buildCtx.components),
|
|
9122
|
-
deprecation: getDocsDeprecationText(
|
|
9175
|
+
deprecation: getDocsDeprecationText(docs.tags),
|
|
9123
9176
|
props: getDocsProperties(cmp),
|
|
9124
9177
|
methods: getDocsMethods(cmp.methods),
|
|
9125
9178
|
events: getDocsEvents(cmp.events),
|
|
9126
9179
|
styles: getDocsStyles(cmp),
|
|
9127
|
-
slots: getDocsSlots(cmp.htmlSlots,
|
|
9128
|
-
parts: getDocsParts(cmp.htmlParts,
|
|
9180
|
+
slots: getDocsSlots(cmp.htmlSlots, docs.tags),
|
|
9181
|
+
parts: getDocsParts(cmp.htmlParts, docs.tags),
|
|
9129
9182
|
customStates: getDocsCustomStates(cmp),
|
|
9130
9183
|
listeners: getDocsListeners(cmp.listeners),
|
|
9131
9184
|
cssOnly: true
|
|
@@ -9175,23 +9228,26 @@ const getDocsProperties = (cmpMeta) => {
|
|
|
9175
9228
|
* @returns the derived metadata
|
|
9176
9229
|
*/
|
|
9177
9230
|
const getRealProperties = (properties) => {
|
|
9178
|
-
return properties.filter((member) => !member.internal).map((member) =>
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9231
|
+
return properties.filter((member) => !member.internal).map((member) => {
|
|
9232
|
+
const docs = convertCompilerJsDoc(member.docs);
|
|
9233
|
+
return {
|
|
9234
|
+
name: member.name,
|
|
9235
|
+
type: member.complexType.resolved,
|
|
9236
|
+
complexType: member.complexType,
|
|
9237
|
+
mutable: member.mutable,
|
|
9238
|
+
attr: member.attribute,
|
|
9239
|
+
reflectToAttr: !!member.reflect,
|
|
9240
|
+
docs: docs.text,
|
|
9241
|
+
docsTags: docs.tags,
|
|
9242
|
+
default: member.defaultValue,
|
|
9243
|
+
deprecation: getDocsDeprecationText(docs.tags),
|
|
9244
|
+
values: parseTypeIntoValues(member.complexType.resolved),
|
|
9245
|
+
optional: member.optional,
|
|
9246
|
+
required: member.required,
|
|
9247
|
+
getter: member.getter,
|
|
9248
|
+
setter: member.setter
|
|
9249
|
+
};
|
|
9250
|
+
});
|
|
9195
9251
|
};
|
|
9196
9252
|
/**
|
|
9197
9253
|
* Generate a collection of JSDoc metadata for props on a component
|
|
@@ -9205,7 +9261,7 @@ const getVirtualProperties = (virtualProps) => {
|
|
|
9205
9261
|
mutable: false,
|
|
9206
9262
|
attr: member.name,
|
|
9207
9263
|
reflectToAttr: false,
|
|
9208
|
-
docs: member.docs,
|
|
9264
|
+
docs: convertJsdocLinksToMarkdown(member.docs),
|
|
9209
9265
|
docsTags: [],
|
|
9210
9266
|
default: void 0,
|
|
9211
9267
|
deprecation: void 0,
|
|
@@ -9256,32 +9312,38 @@ const parseTypeIntoValues = (type) => {
|
|
|
9256
9312
|
return [];
|
|
9257
9313
|
};
|
|
9258
9314
|
const getDocsMethods = (methods) => {
|
|
9259
|
-
return sortBy(methods, (member) => member.name).filter((member) => !member.internal).map((member) =>
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9315
|
+
return sortBy(methods, (member) => member.name).filter((member) => !member.internal).map((member) => {
|
|
9316
|
+
const docs = convertCompilerJsDoc(member.docs);
|
|
9317
|
+
return {
|
|
9318
|
+
name: member.name,
|
|
9319
|
+
returns: {
|
|
9320
|
+
type: member.complexType.return,
|
|
9321
|
+
docs: docs.tags.filter((t) => t.name === "return" || t.name === "returns").map((t) => t.text).join("\n")
|
|
9322
|
+
},
|
|
9323
|
+
complexType: member.complexType,
|
|
9324
|
+
signature: `${member.name}${member.complexType.signature}`,
|
|
9325
|
+
parameters: member.complexType.parameters,
|
|
9326
|
+
docs: docs.text,
|
|
9327
|
+
docsTags: docs.tags,
|
|
9328
|
+
deprecation: getDocsDeprecationText(docs.tags)
|
|
9329
|
+
};
|
|
9330
|
+
});
|
|
9272
9331
|
};
|
|
9273
9332
|
const getDocsEvents = (events) => {
|
|
9274
|
-
return sortBy(events, (eventMeta) => eventMeta.name.toLowerCase()).filter((eventMeta) => !eventMeta.internal).map((eventMeta) =>
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9333
|
+
return sortBy(events, (eventMeta) => eventMeta.name.toLowerCase()).filter((eventMeta) => !eventMeta.internal).map((eventMeta) => {
|
|
9334
|
+
const docs = convertCompilerJsDoc(eventMeta.docs);
|
|
9335
|
+
return {
|
|
9336
|
+
event: eventMeta.name,
|
|
9337
|
+
detail: eventMeta.complexType.resolved,
|
|
9338
|
+
bubbles: eventMeta.bubbles,
|
|
9339
|
+
complexType: eventMeta.complexType,
|
|
9340
|
+
cancelable: eventMeta.cancelable,
|
|
9341
|
+
composed: eventMeta.composed,
|
|
9342
|
+
docs: docs.text,
|
|
9343
|
+
docsTags: docs.tags,
|
|
9344
|
+
deprecation: getDocsDeprecationText(docs.tags)
|
|
9345
|
+
};
|
|
9346
|
+
});
|
|
9285
9347
|
};
|
|
9286
9348
|
/**
|
|
9287
9349
|
* Transforms the {@link d.StyleDoc} metadata for a component into a {@link d.JsonDocsStyle}, providing sensible
|
|
@@ -9295,7 +9357,7 @@ const getDocsStyles = (cmpMeta) => {
|
|
|
9295
9357
|
return {
|
|
9296
9358
|
name: compilerStyleDoc.name,
|
|
9297
9359
|
annotation: compilerStyleDoc.annotation || "",
|
|
9298
|
-
docs: compilerStyleDoc.docs || "",
|
|
9360
|
+
docs: convertJsdocLinksToMarkdown(compilerStyleDoc.docs || ""),
|
|
9299
9361
|
mode: compilerStyleDoc.mode && compilerStyleDoc.mode !== "$" ? compilerStyleDoc.mode : void 0,
|
|
9300
9362
|
...compilerStyleDoc.syntax && { syntax: compilerStyleDoc.syntax },
|
|
9301
9363
|
...compilerStyleDoc.default && { default: compilerStyleDoc.default }
|
|
@@ -9354,7 +9416,7 @@ const getDocsCustomStates = (cmpMeta) => {
|
|
|
9354
9416
|
return sortBy(cmpMeta.attachInternalsCustomStates.map((state) => ({
|
|
9355
9417
|
name: state.name,
|
|
9356
9418
|
initialValue: state.initialValue,
|
|
9357
|
-
docs: state.docs || ""
|
|
9419
|
+
docs: convertJsdocLinksToMarkdown(state.docs || "")
|
|
9358
9420
|
})), (state) => state.name);
|
|
9359
9421
|
};
|
|
9360
9422
|
/**
|
|
@@ -9371,10 +9433,10 @@ const getDocsCustomStates = (cmpMeta) => {
|
|
|
9371
9433
|
const cmpMetaToDocsComponent = (cmp, filePath, rootDir = process.cwd()) => {
|
|
9372
9434
|
const normalizedFilePath = normalizePath(filePath);
|
|
9373
9435
|
const dirPath = normalizePath(dirname$1(normalizedFilePath));
|
|
9374
|
-
const docs = cmp.docs ?? {
|
|
9436
|
+
const docs = convertCompilerJsDoc(cmp.docs ?? {
|
|
9375
9437
|
text: "",
|
|
9376
9438
|
tags: []
|
|
9377
|
-
};
|
|
9439
|
+
});
|
|
9378
9440
|
return {
|
|
9379
9441
|
dirPath,
|
|
9380
9442
|
filePath: normalizePath(relative$1(rootDir, normalizedFilePath), false),
|
|
@@ -27202,8 +27264,27 @@ const transpileModule = (config, input, transformOpts) => {
|
|
|
27202
27264
|
if (tsCompilerOptions.jsx != null && !isAutomaticRuntime && !isString$1(tsCompilerOptions.jsxFragmentFactory)) tsCompilerOptions.jsxFragmentFactory = "Fragment";
|
|
27203
27265
|
if (tsCompilerOptions.paths && !isString$1(tsCompilerOptions.baseUrl)) tsCompilerOptions.baseUrl = ".";
|
|
27204
27266
|
const sourceFile = ts.createSourceFile(sourceFilePath, input, tsCompilerOptions.target);
|
|
27205
|
-
const
|
|
27206
|
-
|
|
27267
|
+
const importedSources = /* @__PURE__ */ new Map();
|
|
27268
|
+
const resolveImport = input.includes("resolveVar(") ? transformOpts.resolveImport : void 0;
|
|
27269
|
+
const resolveViaCallback = (specifier, containingFile) => {
|
|
27270
|
+
let resolved = null;
|
|
27271
|
+
try {
|
|
27272
|
+
resolved = resolveImport(specifier, containingFile, { kind: "type-info" });
|
|
27273
|
+
} catch {}
|
|
27274
|
+
if (!resolved) return void 0;
|
|
27275
|
+
const extension = getResolvedExtension(resolved.path);
|
|
27276
|
+
if (!extension) return void 0;
|
|
27277
|
+
const resolvedFileName = normalizePath(resolved.path.split("?")[0]);
|
|
27278
|
+
if (resolvedFileName !== normalizePath(sourceFilePath) && !importedSources.has(resolvedFileName)) importedSources.set(resolvedFileName, ts.createSourceFile(resolvedFileName, resolved.code, tsCompilerOptions.target, true));
|
|
27279
|
+
return {
|
|
27280
|
+
resolvedFileName,
|
|
27281
|
+
extension,
|
|
27282
|
+
isExternalLibraryImport: false
|
|
27283
|
+
};
|
|
27284
|
+
};
|
|
27285
|
+
if (resolveImport) tsCompilerOptions.noResolve = false;
|
|
27286
|
+
const compilerHost = {
|
|
27287
|
+
getSourceFile: (fileName) => normalizePath(fileName) === normalizePath(sourceFilePath) ? sourceFile : importedSources.get(normalizePath(fileName)),
|
|
27207
27288
|
writeFile: (name, text) => {
|
|
27208
27289
|
if (name.endsWith(".js.map") || name.endsWith(".mjs.map")) results.map = text;
|
|
27209
27290
|
else if (name.endsWith(".js") || name.endsWith(".mjs")) results.code = text;
|
|
@@ -27213,11 +27294,13 @@ const transpileModule = (config, input, transformOpts) => {
|
|
|
27213
27294
|
getCanonicalFileName: (fileName) => fileName,
|
|
27214
27295
|
getCurrentDirectory: () => transformOpts.currentDirectory || (typeof process !== "undefined" ? process.cwd() : "/"),
|
|
27215
27296
|
getNewLine: () => ts.sys && ts.sys.newLine || "\n",
|
|
27216
|
-
fileExists: (fileName) => normalizePath(fileName) === normalizePath(sourceFilePath),
|
|
27297
|
+
fileExists: (fileName) => normalizePath(fileName) === normalizePath(sourceFilePath) || importedSources.has(normalizePath(fileName)),
|
|
27217
27298
|
readFile: () => "",
|
|
27218
27299
|
directoryExists: () => true,
|
|
27219
|
-
getDirectories: () => []
|
|
27220
|
-
|
|
27300
|
+
getDirectories: () => [],
|
|
27301
|
+
...resolveImport ? { resolveModuleNameLiterals: (moduleLiterals, containingFile) => moduleLiterals.map((literal) => ({ resolvedModule: resolveViaCallback(literal.text, containingFile) })) } : {}
|
|
27302
|
+
};
|
|
27303
|
+
const program = ts.createProgram([sourceFilePath], tsCompilerOptions, compilerHost);
|
|
27221
27304
|
const typeChecker = program.getTypeChecker();
|
|
27222
27305
|
const transformers = {
|
|
27223
27306
|
before: [
|
|
@@ -27234,18 +27317,36 @@ const transpileModule = (config, input, transformOpts) => {
|
|
|
27234
27317
|
}
|
|
27235
27318
|
if (transformOpts.componentExport === "customelement" || transformOpts.componentExport === "module") transformers.after.push(nativeComponentTransform(compilerCtx, transformOpts, buildCtx));
|
|
27236
27319
|
else transformers.after.push(lazyComponentTransform(compilerCtx, transformOpts, buildCtx));
|
|
27237
|
-
program.emit(
|
|
27320
|
+
program.emit(sourceFile, void 0, void 0, false, transformers);
|
|
27238
27321
|
if (transformOpts.buildOverrides && results.code) {
|
|
27239
27322
|
const mutations = Object.entries(transformOpts.buildOverrides).filter(([, v]) => v !== void 0).map(([k, v]) => `__stencilBUILD.${k}=${v};`).join("");
|
|
27240
27323
|
if (mutations) results.code = `import{BUILD as __stencilBUILD}from"${STENCIL_APP_DATA_ID}";\n${mutations}\n` + results.code;
|
|
27241
27324
|
}
|
|
27242
|
-
const tsDiagnostics = [...program.getSyntacticDiagnostics()];
|
|
27325
|
+
const tsDiagnostics = [...program.getSyntacticDiagnostics(sourceFile)];
|
|
27243
27326
|
if (config.validateTypes) tsDiagnostics.push(...program.getOptionsDiagnostics());
|
|
27244
27327
|
buildCtx.diagnostics.push(...loadTypeScriptDiagnostics(tsDiagnostics));
|
|
27245
27328
|
results.diagnostics.push(...buildCtx.diagnostics);
|
|
27246
27329
|
results.moduleFile = compilerCtx.moduleMap.get(results.sourceFilePath);
|
|
27247
27330
|
return results;
|
|
27248
27331
|
};
|
|
27332
|
+
/**
|
|
27333
|
+
* Maps a `resolveImport` result path to the TypeScript extension the program should parse it
|
|
27334
|
+
* as. Only TypeScript sources are taken - `noLib`/no `allowJs` means anything else would be
|
|
27335
|
+
* dropped by the program anyway, so it stays unresolved exactly as it did before.
|
|
27336
|
+
*
|
|
27337
|
+
* @param path the resolved path returned by the `resolveImport` callback
|
|
27338
|
+
* @returns the matching `ts.Extension`, or `undefined` if the file can't add type info
|
|
27339
|
+
*/
|
|
27340
|
+
const getResolvedExtension = (path) => {
|
|
27341
|
+
const bare = path.split("?")[0];
|
|
27342
|
+
if (bare.endsWith(".d.ts")) return ts.Extension.Dts;
|
|
27343
|
+
if (bare.endsWith(".d.mts")) return ts.Extension.Dmts;
|
|
27344
|
+
if (bare.endsWith(".d.cts")) return ts.Extension.Dcts;
|
|
27345
|
+
if (bare.endsWith(".tsx")) return ts.Extension.Tsx;
|
|
27346
|
+
if (bare.endsWith(".mts")) return ts.Extension.Mts;
|
|
27347
|
+
if (bare.endsWith(".cts")) return ts.Extension.Cts;
|
|
27348
|
+
if (bare.endsWith(".ts")) return ts.Extension.Ts;
|
|
27349
|
+
};
|
|
27249
27350
|
const getScriptTargetKind = (transformOpts) => {
|
|
27250
27351
|
const target = transformOpts.target && transformOpts.target.toUpperCase();
|
|
27251
27352
|
if (isNumber$1(ts.ScriptTarget[target])) return ts.ScriptTarget[target];
|
|
@@ -4442,10 +4442,18 @@ interface TranspileOptions {
|
|
|
4442
4442
|
*/
|
|
4443
4443
|
additionalTagTransformers?: boolean;
|
|
4444
4444
|
/**
|
|
4445
|
-
* Callback used to resolve
|
|
4446
|
-
*
|
|
4447
|
-
*
|
|
4448
|
-
*
|
|
4445
|
+
* Callback used to resolve imported source during a single-file transpile.
|
|
4446
|
+
* Return the resolved absolute path and source text of that module, or `null`
|
|
4447
|
+
* to leave the specifier unresolved.
|
|
4448
|
+
*
|
|
4449
|
+
* It is called in two situations, told apart by `context.kind`:
|
|
4450
|
+
* - **inheritance** (`context` is `undefined`): a component's `extends` clause
|
|
4451
|
+
* references a class from another module, so the compiler can merge the
|
|
4452
|
+
* parent's metadata.
|
|
4453
|
+
* - **`'type-info'`**: the file uses `resolveVar()`, so the compiler follows its
|
|
4454
|
+
* imports (and theirs) to read constants declared elsewhere. The returned
|
|
4455
|
+
* module is only used for type information - it is never emitted or treated
|
|
4456
|
+
* as a base class.
|
|
4449
4457
|
*
|
|
4450
4458
|
* @example
|
|
4451
4459
|
* ```ts
|
|
@@ -4457,7 +4465,7 @@ interface TranspileOptions {
|
|
|
4457
4465
|
* });
|
|
4458
4466
|
* ```
|
|
4459
4467
|
*/
|
|
4460
|
-
resolveImport?: (specifier: string, importer: string) => {
|
|
4468
|
+
resolveImport?: (specifier: string, importer: string, context?: ResolveImportContext) => {
|
|
4461
4469
|
code: string;
|
|
4462
4470
|
path: string;
|
|
4463
4471
|
} | null;
|
|
@@ -4521,7 +4529,7 @@ interface TransformOptions {
|
|
|
4521
4529
|
/**
|
|
4522
4530
|
* @see {@link TranspileOptions.resolveImport}
|
|
4523
4531
|
*/
|
|
4524
|
-
resolveImport?: (specifier: string, importer: string) => {
|
|
4532
|
+
resolveImport?: (specifier: string, importer: string, context?: ResolveImportContext) => {
|
|
4525
4533
|
code: string;
|
|
4526
4534
|
path: string;
|
|
4527
4535
|
} | null;
|
|
@@ -4530,6 +4538,16 @@ interface TransformOptions {
|
|
|
4530
4538
|
/** @see {@link TranspileOptions.buildOverrides} */
|
|
4531
4539
|
buildOverrides?: BuildOverrides;
|
|
4532
4540
|
}
|
|
4541
|
+
/**
|
|
4542
|
+
* Extra information passed as the third argument of {@link TranspileOptions.resolveImport}.
|
|
4543
|
+
*/
|
|
4544
|
+
interface ResolveImportContext {
|
|
4545
|
+
/**
|
|
4546
|
+
* `'type-info'` when the module is only needed for type information (e.g. `resolveVar()`
|
|
4547
|
+
* reading a constant declared in another file).
|
|
4548
|
+
*/
|
|
4549
|
+
kind: 'type-info';
|
|
4550
|
+
}
|
|
4533
4551
|
interface CompileScriptMinifyOptions {
|
|
4534
4552
|
target?: CompileTarget;
|
|
4535
4553
|
pretty?: boolean;
|
|
@@ -4574,4 +4592,4 @@ interface PluginCtx {
|
|
|
4574
4592
|
diagnostics: Diagnostic[];
|
|
4575
4593
|
}
|
|
4576
4594
|
//#endregion
|
|
4577
|
-
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocsReadmeCustomColumn, FsWatchResults, HistoryApiFallback, HmrGlobalStyleUpdate, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, ModeConfig, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsAgentSkill, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, Plugin, PluginCtx, PluginTransformResults, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
|
|
4595
|
+
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocsReadmeCustomColumn, FsWatchResults, HistoryApiFallback, HmrGlobalStyleUpdate, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, ModeConfig, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsAgentSkill, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, Plugin, PluginCtx, PluginTransformResults, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveImportContext, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
|
|
@@ -4515,10 +4515,18 @@ interface TranspileOptions {
|
|
|
4515
4515
|
*/
|
|
4516
4516
|
additionalTagTransformers?: boolean;
|
|
4517
4517
|
/**
|
|
4518
|
-
* Callback used to resolve
|
|
4519
|
-
*
|
|
4520
|
-
*
|
|
4521
|
-
*
|
|
4518
|
+
* Callback used to resolve imported source during a single-file transpile.
|
|
4519
|
+
* Return the resolved absolute path and source text of that module, or `null`
|
|
4520
|
+
* to leave the specifier unresolved.
|
|
4521
|
+
*
|
|
4522
|
+
* It is called in two situations, told apart by `context.kind`:
|
|
4523
|
+
* - **inheritance** (`context` is `undefined`): a component's `extends` clause
|
|
4524
|
+
* references a class from another module, so the compiler can merge the
|
|
4525
|
+
* parent's metadata.
|
|
4526
|
+
* - **`'type-info'`**: the file uses `resolveVar()`, so the compiler follows its
|
|
4527
|
+
* imports (and theirs) to read constants declared elsewhere. The returned
|
|
4528
|
+
* module is only used for type information - it is never emitted or treated
|
|
4529
|
+
* as a base class.
|
|
4522
4530
|
*
|
|
4523
4531
|
* @example
|
|
4524
4532
|
* ```ts
|
|
@@ -4530,7 +4538,7 @@ interface TranspileOptions {
|
|
|
4530
4538
|
* });
|
|
4531
4539
|
* ```
|
|
4532
4540
|
*/
|
|
4533
|
-
resolveImport?: (specifier: string, importer: string) => {
|
|
4541
|
+
resolveImport?: (specifier: string, importer: string, context?: ResolveImportContext) => {
|
|
4534
4542
|
code: string;
|
|
4535
4543
|
path: string;
|
|
4536
4544
|
} | null;
|
|
@@ -4594,7 +4602,7 @@ interface TransformOptions {
|
|
|
4594
4602
|
/**
|
|
4595
4603
|
* @see {@link TranspileOptions.resolveImport}
|
|
4596
4604
|
*/
|
|
4597
|
-
resolveImport?: (specifier: string, importer: string) => {
|
|
4605
|
+
resolveImport?: (specifier: string, importer: string, context?: ResolveImportContext) => {
|
|
4598
4606
|
code: string;
|
|
4599
4607
|
path: string;
|
|
4600
4608
|
} | null;
|
|
@@ -4603,6 +4611,16 @@ interface TransformOptions {
|
|
|
4603
4611
|
/** @see {@link TranspileOptions.buildOverrides} */
|
|
4604
4612
|
buildOverrides?: BuildOverrides;
|
|
4605
4613
|
}
|
|
4614
|
+
/**
|
|
4615
|
+
* Extra information passed as the third argument of {@link TranspileOptions.resolveImport}.
|
|
4616
|
+
*/
|
|
4617
|
+
interface ResolveImportContext {
|
|
4618
|
+
/**
|
|
4619
|
+
* `'type-info'` when the module is only needed for type information (e.g. `resolveVar()`
|
|
4620
|
+
* reading a constant declared in another file).
|
|
4621
|
+
*/
|
|
4622
|
+
kind: 'type-info';
|
|
4623
|
+
}
|
|
4606
4624
|
interface CompileScriptMinifyOptions {
|
|
4607
4625
|
target?: CompileTarget;
|
|
4608
4626
|
pretty?: boolean;
|
|
@@ -6275,4 +6293,4 @@ type MsgToWorker<T extends WorkerContextMethod> = IPCSerializable<{
|
|
|
6275
6293
|
*/
|
|
6276
6294
|
type WorkerMsgHandler = <T extends WorkerContextMethod>(msgToWorker: MsgToWorker<T>) => ReturnType<CompilerWorkerContext[T]>;
|
|
6277
6295
|
//#endregion
|
|
6278
|
-
export { CompilerFsStats as $,
|
|
6296
|
+
export { CompilerFsStats as $, COLLECTION as $i, WatcherCloseResults as $n, rolldownToStencilSourceMap as $r, OutputTargetBuild as $t, BuildOverrides as A, WWW as Aa, shouldExcludeComponent as Ai, ResolveModuleIdOptions as An, FsWriteResults as Ar, HotModuleReplacement as At, CompilerEventBuildLog as B, normalizeDiagnostics as Bi, SsrDocumentOptions as Bn, isDtsFile as Br, Logger as Bt, BuildEmitEvents as C, STANDALONE as Ca, isOutputTargetSsrWasm as Ci, PluginTransformResults as Cn, JsonDocsSlot as Cr, DevServerEditor as Ct, BuildOnEventRemove as D, TYPES as Da, isOutputTargetWww as Di, PrerenderResults as Dn, JsonDocsUsage as Dr, HistoryApiFallback as Dt, BuildNoChangeResults as E, SVG_NS as Ea, isOutputTargetTypes as Ei, PrerenderOptions as En, JsonDocsTypeLibrary as Er, FsWatchResults as Et, Compiler as F, catchError as Fi, RolldownConfig as Fn, addDocBlock as Fr, LazyRequire as Ft, CompilerEventFileAdd as G, createOnWarnFn as Gi, SystemDetails as Gn, parsePackageJson as Gr, OptimizeCssInput as Gt, CompilerEventBuildStart as H, augmentDiagnosticWithNode as Hi, StencilConfig as Hn, isJsxFile as Hr, LoggerTimeSpan as Ht, CompilerBuildResults as I, hasError as Ii, SerializeDocumentOptions as In, createJsVarName as Ir, LightDomPatches as It, CompilerEventFsChange as J, formatComponentRuntimeMeta as Ji, TranspileOptions as Jn, getInlineSourceMappingUrlLinker as Jr, OptimizeJsOutput as Jt, CompilerEventFileDelete as K, isRolldownError as Ki, TransformOptions as Kn, readOnlyArrayHasStringMember as Kr, OptimizeCssOutput as Kt, CompilerBuildStart as L, hasWarning as Li, ServiceWorkerConfig as Ln, generatePreamble as Lr, LoadConfigInit as Lt, CliInitOptions as M, buildError as Mi, ResolveModuleOptions as Mn, validateComponentModes as Mr, HydrateFactoryOptions as Mt, CompileScriptMinifyOptions as N, buildJsonFileError as Ni, RobotsTxtOpts as Nn, validateComponentTag as Nr, HydratedFlag as Nt, BuildOnEvents as O, VALID_CONFIG_OUTPUT_TARGETS as Oa, isValidConfigOutputTarget as Oi, PrerenderStartOptions as On, JsonDocsValue as Or, HmrGlobalStyleUpdate as Ot, CompileTarget as P, buildWarn as Pi, RobotsTxtResults as Pn, ParsePackageJsonResult as Pr, LOG_LEVELS as Pt, CompilerFileWatcherEvent as Q, CMP_FLAGS as Qi, ValidatedOutputTargetWww as Qn, relativizeSourceMap as Qr, OutputTargetBaseNext as Qt, CompilerDependency as R, shouldIgnoreError as Ri, SitemapXmpOpts as Rn, getTextDocs as Rr, LoadConfigResults as Rt, AutoprefixerOptions as S, SSR_WASM as Sa, isOutputTargetSsr as Si, PluginCtx as Sn, JsonDocsProp as Sr, DevServerConfig as St, BuildLog as T, STYLE_EXT as Ta, isOutputTargetStats as Ti, PrerenderHydrateOptions as Tn, JsonDocsTag as Tr, DocsReadmeCustomColumn as Tt, CompilerEventDirAdd as U, loadTypeScriptDiagnostic as Ui, StencilDevServerConfig as Un, isTsFile as Ur, ModeConfig as Ut, CompilerEventBuildNoChange as V, splitLineBreaks as Vi, SsrFactoryOptions as Vn, isJsFile as Vr, LoggerLineUpdater as Vt, CompilerEventDirDelete as W, loadTypeScriptDiagnostics as Wi, StencilDocsConfig as Wn, isTsxFile as Wr, NodeResolveConfig as Wt, CompilerFileWatcher as X, stringifyRuntimeData as Xi, UnvalidatedConfig as Xn, getSourceMappingUrlForEndOfFile as Xr, OutputTargetAssets as Xt, CompilerEventName as Y, formatLazyBundleRuntimeMeta as Yi, TranspileResults as Yn, getRolldownSourceMapOptions as Yr, OutputTarget as Yt, CompilerFileWatcherCallback as Z, ASSETS as Zi, ValidatedConfig as Zn, getSourceMappingUrlLinker as Zr, OutputTargetBase as Zt, PrintLine as _, LISTENER_FLAGS as _a, isOutputTargetDocsReadme as _i, OutputTargetWww as _n, JsonDocsEvent as _r, CopyTask as _t, ComponentCompilerEvent as a, DIST_LAZY as aa, getComponentsDtsTypesFilePath as ai, OutputTargetDocsCustom as an, MixedInCtor as ar, CompilerSystemRealpathResults as at, SsrResults as b, NODE_TYPES as ba, isOutputTargetLoaderBundle as bi, PlatformPath as bn, JsonDocsMethodReturn as br, CustomElementsExportBehaviorOptions as bt, ComponentCompilerMethod as c, DOCS_CUSTOM_ELEMENTS_MANIFEST as ca, isOutputTargetCollection as ci, OutputTargetDocsReadme as cn, ResolutionHandler as cr, CompilerSystemRemoveFileResults as ct, ComponentCompilerTypeReferences as d, DOCS_VSCODE as da, isOutputTargetDistLazy as di, OutputTargetLoaderBundle as dn, VNode as dr, CompilerSystemWriteFileResults as dt, COLLECTION_APP_DATA_FILE_NAME as ea, result_d_exports as ei, OutputTargetCollection as en, WorkerMainController as er, CompilerRequest as et, ComponentGlobalStyle as f, EVENT_FLAGS as fa, isOutputTargetDocs as fi, OutputTargetSsr as fn, JsonDocMethodParameter as fr, CompilerWatcher as ft, PrerenderUrlResults as g, HTML_NS as ga, isOutputTargetDocsJson as gi, OutputTargetTypes as gn, JsonDocsDependencyGraph as gr, CopyResults as gt, PackageJsonData as h, HOST_FLAGS as ha, isOutputTargetDocsCustomElementsManifest as hi, OutputTargetStats as hn, JsonDocsCustomState as hr, ConfigCompat as ht, CompilerWorkerContext as i, DEFAULT_STYLE_MODE as ia, getComponentsDtsSrcFilePath as ii, OutputTargetDocsAgentSkill as in, FunctionalComponent as ir, CompilerSystemCreateDirectoryResults as it, BuildResultsComponentGraph as j, XLINK_NS as ja, TASK_CANCELED_MSG as ji, ResolveModuleIdResults as jn, ModeValidationError as jr, HydrateDocumentOptions as jt, BuildOutput as k, WATCH_FLAGS as ka, relativeImport as ki, ResolveImportContext as kn, StyleDoc as kr, HmrStyleUpdate as kt, ComponentCompilerProperty as l, DOCS_JSON as la, isOutputTargetCopy as li, OutputTargetDocsVscode as ln, TagTransformer as lr, CompilerSystemRenameResults as lt, LazyBundlesRuntimeData as m, GLOBAL_STYLE as ma, isOutputTargetDocsCustom as mi, OutputTargetStandalone as mn, JsonDocsComponent as mr, ConfigBundle as mt, ChildType as n, COPY as na, filterActiveTargets as ni, OutputTargetCustom as nn, ComponentInterface as nr, CompilerSystem as nt, ComponentCompilerListener as o, DOCS_AGENT_SKILL as oa, getComponentsFromModules as oi, OutputTargetDocsCustomElementsManifest as on, RafCallback as or, CompilerSystemRemoveDirectoryOptions as ot, HostElement as p, GENERATED_DTS as pa, isOutputTargetDocsAgentSkill as pi, OutputTargetSsrWasm as pn, JsonDocs as pr, Config as pt, CompilerEventFileUpdate as q, loadRolldownDiagnostics as qi, TranspileOnlyResults as qn, readPackageJson as qr, OptimizeJsInput as qt, CompilerCtx as r, CUSTOM as ra, filterExcludedComponents as ri, OutputTargetDistLazy as rn, ErrorHandler as rr, CompilerSystemCreateDirectoryOptions as rt, ComponentCompilerMeta as s, DOCS_CUSTOM as sa, isOutputTargetAssets as si, OutputTargetDocsJson as sn, ReactiveControllerHostInterface as sr, CompilerSystemRemoveDirectoryResults as st, BuildCtx as t, COLLECTION_MANIFEST_FILE_NAME as ta, FilterComponentsResult as ti, OutputTargetCopy as tn, WorkerOptions as tr, CompilerRequestResponse as tt, ComponentCompilerState as u, DOCS_README as ua, isOutputTargetCustom as ui, OutputTargetGlobalStyle as un, UserBuildConditionals as ur, CompilerSystemRenamedPath as ut, PropsType as v, LOADER_BUNDLE as va, isOutputTargetDocsVscode as vi, PageReloadStrategy as vn, JsonDocsListener as vr, Credentials as vt, BuildEvents as w, STATS as wa, isOutputTargetStandalone as wi, PrerenderConfig as wn, JsonDocsStyle as wr, Diagnostic$1 as wt, WorkerMsgHandler as x, SSR as xa, isOutputTargetServerRenderer as xi, Plugin$1 as xn, JsonDocsPart as xr, DevServer as xt, RuntimeRef as y, MEMBER_FLAGS as ya, isOutputTargetGlobalStyle as yi, ParsedPath as yn, JsonDocsMethod as yr, CustomElementsExportBehavior as yt, CompilerEventBuildFinish as z, escapeHtml as zi, SitemapXmpResults as zn, hasDependency as zr, LogLevel as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cr as ResolutionHandler, dr as VNode, ir as FunctionalComponent, lr as TagTransformer, n as ChildType, or as RafCallback, p as HostElement, rr as ErrorHandler, ur as UserBuildConditionals, v as PropsType, y as RuntimeRef } from "./index-BxnfbT3a.mjs";
|
|
2
2
|
//#region src/client/client-build.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* `isDev` / `isTesting` are getters, not copies: the transpile path (e.g. `@stencil/unplugin`)
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DkvdNuPu.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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import "./client-
|
|
2
|
+
import "./client-DkvdNuPu.mjs";
|
|
3
3
|
import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-pTCZhNi0.mjs";
|
|
4
4
|
import { X as TASK_CANCELED_MSG, Z as buildError, et as catchError, it as isGlob, q as normalizePath, rt as shouldIgnoreError } from "./util-CP6-333M.mjs";
|
|
5
5
|
import fs from "node:fs";
|