@stencil/core 5.0.0-alpha.33 → 5.0.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-data/index.d.ts +1 -1
- package/dist/app-data/index.js +1 -0
- package/dist/{client-Bqq2Agpl.mjs → client-BVfiFFJ4.mjs} +3 -2
- package/dist/compiler/index.d.mts +1 -1
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-DjwEWyq2.mjs → compiler-Dvx_T9vu.mjs} +15 -10
- package/dist/declarations/stencil-public-compiler.d.ts +4 -0
- package/dist/{index-BCm37iOm.d.mts → index-BcfVWmNG.d.mts} +4 -0
- package/dist/{index-BTVuF9UD.d.ts → index-BsC_D1Ve.d.ts} +2 -0
- package/dist/{index-C-fMSffa.d.mts → index-Cy8qbpEV.d.mts} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-DugJ2Vs2.mjs → node-DQBayfoI.mjs} +1 -1
- package/dist/runtime/client/lazy.js +2 -2
- package/dist/runtime/client/runtime.js +2 -2
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/server/index.mjs +2 -2
- package/dist/runtime/server/runner.mjs +67 -26
- package/dist/signals/index.js +1 -0
- 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 +4 -0
- package/dist/testing/index.mjs +8 -3
- package/package.json +4 -4
package/dist/app-data/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Env, r as NAMESPACE, t as BUILD } from "../index-
|
|
1
|
+
import { n as Env, r as NAMESPACE, t as BUILD } from "../index-BsC_D1Ve.js";
|
|
2
2
|
export { BUILD, Env, NAMESPACE };
|
package/dist/app-data/index.js
CHANGED
|
@@ -58,6 +58,7 @@ const BUILD = {
|
|
|
58
58
|
vdomListener: true,
|
|
59
59
|
vdomRef: true,
|
|
60
60
|
vdomPropOrAttr: true,
|
|
61
|
+
vdomPropOrAttrPrefix: true,
|
|
61
62
|
vdomRender: true,
|
|
62
63
|
vdomStyle: true,
|
|
63
64
|
vdomText: true,
|
|
@@ -833,7 +834,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
833
834
|
if (oldValue) plt.rel(elm, memberName, oldValue, capture);
|
|
834
835
|
if (newValue) plt.ael(elm, memberName, newValue, capture);
|
|
835
836
|
}
|
|
836
|
-
} else if (BUILD.
|
|
837
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
837
838
|
const propName = memberName.slice(5);
|
|
838
839
|
let attrName;
|
|
839
840
|
if (BUILD.member) {
|
|
@@ -848,7 +849,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
848
849
|
if (newValue !== false || elm.getAttribute(attrName) === "") elm.removeAttribute(attrName);
|
|
849
850
|
} else elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
850
851
|
return;
|
|
851
|
-
} else if (BUILD.
|
|
852
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
852
853
|
const propName = memberName.slice(5);
|
|
853
854
|
try {
|
|
854
855
|
elm[propName] = newValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ComponentCompilerVirtualProperty, $i as SsrFactoryOptions, $n as CompilerBuildResults, $r as LoadConfigInit, $t as PropsType, A as CompilerStyleDoc, Aa as JsonDocsListener, Ai as OutputTargetStandalone, An as TypesMemberNameData, Ar as Config, At as JsDoc, B as ComponentCompilerMeta, Ba as JsonDocsValue, Bi as PrerenderResults, Bn as BuildEvents, Br as DevServerEditor, Bt as OptimizeJsResult, C as CompilerBuildStatBundle, Ci as OutputTargetDocsJson, Cn as StyleCompiler, Cr as CompilerSystemRemoveDirectoryOptions, Ct as EntryModule, D as CompilerJsDoc, Da as JsonDocsCustomState, Di as OutputTargetLoaderBundle, Dn as TranspileModuleResults, Dr as CompilerSystemRenamedPath, Dt as HostRef, E as CompilerCtx, Ea as JsonDocsComponent, Ei as OutputTargetGlobalStyle, En as TransformCssToEsmOutput, Er as CompilerSystemRenameResults, Et as HostElement, F as ComponentCompilerData, Fa as JsonDocsSlot, Fi as ParsedPath, Fn as Workbox, Fr as Credentials, Ft as ModuleMap, G as ComponentCompilerPropertyType, Gi as RobotsTxtOpts, Gn as BuildOutput, Gr as HmrStyleUpdate, Gt as Plugin, H as ComponentCompilerMethodComplexType, Ha as FsWriteResults, Hi as ResolveModuleIdOptions, Hn as BuildNoChangeResults, Hr as DocsReadmeCustomColumn, Ht as ParsedImport, I as ComponentCompilerEvent, Ia as JsonDocsStyle, Ii as PlatformPath, In as WorkerContextMethod, Ir as CustomElementsExportBehavior, It as MsgFromWorker, J as ComponentCompilerStaticEvent, Ji as SerializeDocumentOptions, Jn as CacheStorage, Jr as HydrateFactoryOptions, Jt as PluginTransformationDescriptor, K as ComponentCompilerReferencedType, Ki as RobotsTxtResults, Kn as BuildOverrides, Kr as HotModuleReplacement, Kt as PluginCtx, L as ComponentCompilerEventComplexType, La as JsonDocsTag, Li as PrerenderConfig, Ln as WorkerMsgHandler, Lr as CustomElementsExportBehaviorOptions, Lt as MsgToWorker, M as CompilerWorkerTask, Ma as JsonDocsMethodReturn, Mi as OutputTargetTypes, Mn as UpdatedLazyBuildCtx, Mr as ConfigCompat, Mt as LazyBundlesRuntimeData, N as ComponentCompilerChangeHandler, Na as JsonDocsPart, Ni as OutputTargetWww, Nn as VNodeProdData, Nr as CopyResults, Nt as Module, O as CompilerJsDocTagInfo, Oa as JsonDocsDependencyGraph, Oi as OutputTargetSsr, On as TypeInfo, Or as CompilerSystemWriteFileResults, Ot as ImportData, P as ComponentCompilerCustomState, Pa as JsonDocsProp, Pi as PageReloadStrategy, Pn as ValidateTypesResults, Pr as CopyTask, Pt as ModuleFormat, Q as ComponentCompilerTypeReferences, Qi as SsrDocumentOptions, Qn as Compiler, Qr as LightDomPatches, Qt as PrintLine, R as ComponentCompilerFeatures, Ra as JsonDocsTypeLibrary, Ri as PrerenderHydrateOptions, Rn as AutoprefixerOptions, Rr as DevServer, Rt as NewSpecPageOptions, S as CompilerAssetDir, Si as OutputTargetDocsCustomElementsManifest, Sn as StencilDocument, Sr as CompilerSystemRealpathResults, St as Encapsulation, T as CompilerBuildStats, Ta as JsonDocs, Ti as OutputTargetDocsVscode, Tn as TransformCssToEsmInput, Tr as CompilerSystemRemoveFileResults, Tt as ExternalStyleCompiler, U as ComponentCompilerProperty, Ua as InMemoryFileSystem, Ui as ResolveModuleIdResults, Un as BuildOnEventRemove, Ur as FsWatchResults, Ut as PatchedSlotNode, V as ComponentCompilerMethod, Va as StyleDoc, Vi as PrerenderStartOptions, Vn as BuildLog, Vr as Diagnostic, Vt as PackageJsonData, W as ComponentCompilerPropertyComplexType, Wi as ResolveModuleOptions, Wn as BuildOnEvents, Wr as HistoryApiFallback, Wt as PlatformRuntime, X as ComponentCompilerStaticProperty, Xi as SitemapXmpOpts, Xn as CompileScriptMinifyOptions, Xr as LOG_LEVELS, Xt as PrerenderUrlRequest, Y as ComponentCompilerStaticMethod, Yi as ServiceWorkerConfig, Yn as CliInitOptions, Yr as HydratedFlag, Yt as PrerenderManager, Z as ComponentCompilerTypeReference, Zi as SitemapXmpResults, Zn as CompileTarget, Zr as LazyRequire, Zt as PrerenderUrlResults, _ as CollectionCompilerVersion, _i as OutputTargetCopy, _n as SsrImgElement, _r as CompilerRequest, _t as ComponentTestingConstructor, a as BuildCtx, aa as TranspileOnlyResults, ai as ModeConfig, an as RolldownResults, ar as CompilerEventBuildStart, at as ComponentConstructorProperties, b as CollectionDependencyManifest, bi as OutputTargetDocsAgentSkill, bn as SsrStaticData, br as CompilerSystemCreateDirectoryOptions, bt as CssTransformCacheEntry, c as BuildStyleUpdate, ca as UnvalidatedConfig, ci as OptimizeCssOutput, cn as RuntimeRef, cr as CompilerEventFileAdd, ct as ComponentGlobalStyle, d as BundleModuleOutput, da as WatcherCloseResults, di as OutputTarget, dn as SourceMap, dr as CompilerEventFsChange, dt as ComponentRuntimeHostListener, ea as StencilConfig, ei as LoadConfigResults, en as RenderNode, er as CompilerBuildStart, et as ComponentConstructor, f as Cache, fa as WorkerMainController, fi as OutputTargetAssets, fn as SourceTarget, fr as CompilerEventName, ft as ComponentRuntimeMember, g as CollectionCompilerMeta, gi as OutputTargetCollection, gn as SsrElement, gr as CompilerFsStats, gt as ComponentRuntimeReflectingAttr, h as CollectionCompiler, hi as OutputTargetBuild, hn as SsrComponent, hr as CompilerFileWatcherEvent, ht as ComponentRuntimeMetaCompact, i as BuildConditionals, ia as TransformOptions, ii as LoggerTimeSpan, in as RolldownResultModule, ir as CompilerEventBuildNoChange, it as ComponentConstructorListener, j as CompilerWorkerContext, ja as JsonDocsMethod, ji as OutputTargetStats, jn as TypesModule, jr as ConfigBundle, jt as LazyBundleRuntimeData, k as CompilerModeStyles, ka as JsonDocsEvent, ki as OutputTargetSsrWasm, kn as TypesImportData, kr as CompilerWatcher, kt as JSDocTagInfo, l as BuildTask, la as ValidatedConfig, li as OptimizeJsInput, ln as SerializeImportData, lr as CompilerEventFileDelete, lt as ComponentNativeConstructor, m as CollectionBundleManifest, mi as OutputTargetBaseNext, mn as SsrAnchorElement, mr as CompilerFileWatcherCallback, mt as ComponentRuntimeMeta, n as AssetsMeta, na as StencilDocsConfig, ni as Logger, nn as RolldownChunkResult, nr as CompilerEventBuildFinish, nt as ComponentConstructorEncapsulation, o as BuildFeatures, oa as TranspileOptions, oi as NodeResolveConfig, on as RolldownSourceMap, or as CompilerEventDirAdd, ot as ComponentConstructorProperty, p as ChildType, pa as WorkerOptions, pi as OutputTargetBase, pn as SpecPage, pr as CompilerFileWatcher, pt as ComponentRuntimeMembers, q as ComponentCompilerState, qi as RolldownConfig, qn as BuildResultsComponentGraph, qr as HydrateDocumentOptions, qt as PluginTransformResults, r as BuildComponent, ra as SystemDetails, ri as LoggerLineUpdater, rn as RolldownResult, rr as CompilerEventBuildLog, rt as ComponentConstructorEvent, s as BuildSourceGraph, sa as TranspileResults, si as OptimizeCssInput, sn as RootAppliedStyleMap, sr as CompilerEventDirDelete, st as ComponentConstructorPropertyType, t as AnyHTMLElement, ta as StencilDevServerConfig, ti as LogLevel, tn as RolldownAssetResult, tr as CompilerDependency, tt as ComponentConstructorChangeHandlers, u as BundleModule, ua as ValidatedOutputTargetWww, ui as OptimizeJsOutput, un as SerializedEvent, ur as CompilerEventFileUpdate, ut as ComponentPatches, v as CollectionComponentEntryPath, vi as OutputTargetCustom, vn as SsrResults, vr as CompilerRequestResponse, vt as CssImportData, w as CompilerBuildStatCollection, wa as JsonDocMethodParameter, wi as OutputTargetDocsReadme, wn as StyleMap, wr as CompilerSystemRemoveDirectoryResults, wt as EventInitDict, x as CollectionManifest, xi as OutputTargetDocsCustom, xn as SsrStyleElement, xr as CompilerSystemCreateDirectoryResults, xt as DocData, y as CollectionDependencyData, yi as OutputTargetDistLazy, yn as SsrScriptElement, yr as CompilerSystem, yt as CssToEsmImportData, z as ComponentCompilerListener, za as JsonDocsUsage, zi as PrerenderOptions, zn as BuildEmitEvents, zr as DevServerConfig, zt as NodeMap } from "../index-
|
|
1
|
+
import { $ as ComponentCompilerVirtualProperty, $i as SsrFactoryOptions, $n as CompilerBuildResults, $r as LoadConfigInit, $t as PropsType, A as CompilerStyleDoc, Aa as JsonDocsListener, Ai as OutputTargetStandalone, An as TypesMemberNameData, Ar as Config, At as JsDoc, B as ComponentCompilerMeta, Ba as JsonDocsValue, Bi as PrerenderResults, Bn as BuildEvents, Br as DevServerEditor, Bt as OptimizeJsResult, C as CompilerBuildStatBundle, Ci as OutputTargetDocsJson, Cn as StyleCompiler, Cr as CompilerSystemRemoveDirectoryOptions, Ct as EntryModule, D as CompilerJsDoc, Da as JsonDocsCustomState, Di as OutputTargetLoaderBundle, Dn as TranspileModuleResults, Dr as CompilerSystemRenamedPath, Dt as HostRef, E as CompilerCtx, Ea as JsonDocsComponent, Ei as OutputTargetGlobalStyle, En as TransformCssToEsmOutput, Er as CompilerSystemRenameResults, Et as HostElement, F as ComponentCompilerData, Fa as JsonDocsSlot, Fi as ParsedPath, Fn as Workbox, Fr as Credentials, Ft as ModuleMap, G as ComponentCompilerPropertyType, Gi as RobotsTxtOpts, Gn as BuildOutput, Gr as HmrStyleUpdate, Gt as Plugin, H as ComponentCompilerMethodComplexType, Ha as FsWriteResults, Hi as ResolveModuleIdOptions, Hn as BuildNoChangeResults, Hr as DocsReadmeCustomColumn, Ht as ParsedImport, I as ComponentCompilerEvent, Ia as JsonDocsStyle, Ii as PlatformPath, In as WorkerContextMethod, Ir as CustomElementsExportBehavior, It as MsgFromWorker, J as ComponentCompilerStaticEvent, Ji as SerializeDocumentOptions, Jn as CacheStorage, Jr as HydrateFactoryOptions, Jt as PluginTransformationDescriptor, K as ComponentCompilerReferencedType, Ki as RobotsTxtResults, Kn as BuildOverrides, Kr as HotModuleReplacement, Kt as PluginCtx, L as ComponentCompilerEventComplexType, La as JsonDocsTag, Li as PrerenderConfig, Ln as WorkerMsgHandler, Lr as CustomElementsExportBehaviorOptions, Lt as MsgToWorker, M as CompilerWorkerTask, Ma as JsonDocsMethodReturn, Mi as OutputTargetTypes, Mn as UpdatedLazyBuildCtx, Mr as ConfigCompat, Mt as LazyBundlesRuntimeData, N as ComponentCompilerChangeHandler, Na as JsonDocsPart, Ni as OutputTargetWww, Nn as VNodeProdData, Nr as CopyResults, Nt as Module, O as CompilerJsDocTagInfo, Oa as JsonDocsDependencyGraph, Oi as OutputTargetSsr, On as TypeInfo, Or as CompilerSystemWriteFileResults, Ot as ImportData, P as ComponentCompilerCustomState, Pa as JsonDocsProp, Pi as PageReloadStrategy, Pn as ValidateTypesResults, Pr as CopyTask, Pt as ModuleFormat, Q as ComponentCompilerTypeReferences, Qi as SsrDocumentOptions, Qn as Compiler, Qr as LightDomPatches, Qt as PrintLine, R as ComponentCompilerFeatures, Ra as JsonDocsTypeLibrary, Ri as PrerenderHydrateOptions, Rn as AutoprefixerOptions, Rr as DevServer, Rt as NewSpecPageOptions, S as CompilerAssetDir, Si as OutputTargetDocsCustomElementsManifest, Sn as StencilDocument, Sr as CompilerSystemRealpathResults, St as Encapsulation, T as CompilerBuildStats, Ta as JsonDocs, Ti as OutputTargetDocsVscode, Tn as TransformCssToEsmInput, Tr as CompilerSystemRemoveFileResults, Tt as ExternalStyleCompiler, U as ComponentCompilerProperty, Ua as InMemoryFileSystem, Ui as ResolveModuleIdResults, Un as BuildOnEventRemove, Ur as FsWatchResults, Ut as PatchedSlotNode, V as ComponentCompilerMethod, Va as StyleDoc, Vi as PrerenderStartOptions, Vn as BuildLog, Vr as Diagnostic, Vt as PackageJsonData, W as ComponentCompilerPropertyComplexType, Wi as ResolveModuleOptions, Wn as BuildOnEvents, Wr as HistoryApiFallback, Wt as PlatformRuntime, X as ComponentCompilerStaticProperty, Xi as SitemapXmpOpts, Xn as CompileScriptMinifyOptions, Xr as LOG_LEVELS, Xt as PrerenderUrlRequest, Y as ComponentCompilerStaticMethod, Yi as ServiceWorkerConfig, Yn as CliInitOptions, Yr as HydratedFlag, Yt as PrerenderManager, Z as ComponentCompilerTypeReference, Zi as SitemapXmpResults, Zn as CompileTarget, Zr as LazyRequire, Zt as PrerenderUrlResults, _ as CollectionCompilerVersion, _i as OutputTargetCopy, _n as SsrImgElement, _r as CompilerRequest, _t as ComponentTestingConstructor, a as BuildCtx, aa as TranspileOnlyResults, ai as ModeConfig, an as RolldownResults, ar as CompilerEventBuildStart, at as ComponentConstructorProperties, b as CollectionDependencyManifest, bi as OutputTargetDocsAgentSkill, bn as SsrStaticData, br as CompilerSystemCreateDirectoryOptions, bt as CssTransformCacheEntry, c as BuildStyleUpdate, ca as UnvalidatedConfig, ci as OptimizeCssOutput, cn as RuntimeRef, cr as CompilerEventFileAdd, ct as ComponentGlobalStyle, d as BundleModuleOutput, da as WatcherCloseResults, di as OutputTarget, dn as SourceMap, dr as CompilerEventFsChange, dt as ComponentRuntimeHostListener, ea as StencilConfig, ei as LoadConfigResults, en as RenderNode, er as CompilerBuildStart, et as ComponentConstructor, f as Cache, fa as WorkerMainController, fi as OutputTargetAssets, fn as SourceTarget, fr as CompilerEventName, ft as ComponentRuntimeMember, g as CollectionCompilerMeta, gi as OutputTargetCollection, gn as SsrElement, gr as CompilerFsStats, gt as ComponentRuntimeReflectingAttr, h as CollectionCompiler, hi as OutputTargetBuild, hn as SsrComponent, hr as CompilerFileWatcherEvent, ht as ComponentRuntimeMetaCompact, i as BuildConditionals, ia as TransformOptions, ii as LoggerTimeSpan, in as RolldownResultModule, ir as CompilerEventBuildNoChange, it as ComponentConstructorListener, j as CompilerWorkerContext, ja as JsonDocsMethod, ji as OutputTargetStats, jn as TypesModule, jr as ConfigBundle, jt as LazyBundleRuntimeData, k as CompilerModeStyles, ka as JsonDocsEvent, ki as OutputTargetSsrWasm, kn as TypesImportData, kr as CompilerWatcher, kt as JSDocTagInfo, l as BuildTask, la as ValidatedConfig, li as OptimizeJsInput, ln as SerializeImportData, lr as CompilerEventFileDelete, lt as ComponentNativeConstructor, m as CollectionBundleManifest, mi as OutputTargetBaseNext, mn as SsrAnchorElement, mr as CompilerFileWatcherCallback, mt as ComponentRuntimeMeta, n as AssetsMeta, na as StencilDocsConfig, ni as Logger, nn as RolldownChunkResult, nr as CompilerEventBuildFinish, nt as ComponentConstructorEncapsulation, o as BuildFeatures, oa as TranspileOptions, oi as NodeResolveConfig, on as RolldownSourceMap, or as CompilerEventDirAdd, ot as ComponentConstructorProperty, p as ChildType, pa as WorkerOptions, pi as OutputTargetBase, pn as SpecPage, pr as CompilerFileWatcher, pt as ComponentRuntimeMembers, q as ComponentCompilerState, qi as RolldownConfig, qn as BuildResultsComponentGraph, qr as HydrateDocumentOptions, qt as PluginTransformResults, r as BuildComponent, ra as SystemDetails, ri as LoggerLineUpdater, rn as RolldownResult, rr as CompilerEventBuildLog, rt as ComponentConstructorEvent, s as BuildSourceGraph, sa as TranspileResults, si as OptimizeCssInput, sn as RootAppliedStyleMap, sr as CompilerEventDirDelete, st as ComponentConstructorPropertyType, t as AnyHTMLElement, ta as StencilDevServerConfig, ti as LogLevel, tn as RolldownAssetResult, tr as CompilerDependency, tt as ComponentConstructorChangeHandlers, u as BundleModule, ua as ValidatedOutputTargetWww, ui as OptimizeJsOutput, un as SerializedEvent, ur as CompilerEventFileUpdate, ut as ComponentPatches, v as CollectionComponentEntryPath, vi as OutputTargetCustom, vn as SsrResults, vr as CompilerRequestResponse, vt as CssImportData, w as CompilerBuildStatCollection, wa as JsonDocMethodParameter, wi as OutputTargetDocsReadme, wn as StyleMap, wr as CompilerSystemRemoveDirectoryResults, wt as EventInitDict, x as CollectionManifest, xi as OutputTargetDocsCustom, xn as SsrStyleElement, xr as CompilerSystemCreateDirectoryResults, xt as DocData, y as CollectionDependencyData, yi as OutputTargetDistLazy, yn as SsrScriptElement, yr as CompilerSystem, yt as CssToEsmImportData, z as ComponentCompilerListener, za as JsonDocsUsage, zi as PrerenderOptions, zn as BuildEmitEvents, zr as DevServerConfig, zt as NodeMap } from "../index-BcfVWmNG.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
//#region src/version.d.ts
|
|
4
4
|
declare const version: string;
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as buildId, a as createPrerenderer, b as versions, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as getScopeId, h as cmpMetaToDocsComponent, i as createSystem, l as createWorkerMessageHandler, m as generateManifest, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as vermoji, x as scopeCss, y as version } from "../compiler-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-
|
|
1
|
+
import { _ as buildId, a as createPrerenderer, b as versions, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as getScopeId, h as cmpMetaToDocsComponent, i as createSystem, l as createWorkerMessageHandler, m as generateManifest, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as vermoji, x as scopeCss, y as version } from "../compiler-Dvx_T9vu.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-DQBayfoI.mjs";
|
|
3
3
|
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,4 +1,4 @@
|
|
|
1
|
-
import { $a as isDtsFile, $o as loadTypeScriptDiagnostic, Ao as isOutputTargetGlobalStyle, As as NODE_TYPES, Bo as shouldExcludeComponent, Bs as WWW, Co as isOutputTargetDocs, Cs as GENERATED_DTS, Do as isOutputTargetDocsJson, Ds as LISTENER_FLAGS, Eo as isOutputTargetDocsCustomElementsManifest, Es as HTML_NS, Fo as isOutputTargetStats, Fs as STYLE_EXT, Ga as validateComponentModes, Go as catchError, Ho as buildError, Io as isOutputTargetTypes, Is as SVG_NS, Ja as addDocBlock, Jo as shouldIgnoreError, Ka as validateComponentTag, Ko as hasError, Lo as isOutputTargetWww, Ls as TYPES, Mo as isOutputTargetSsr, Ms as SSR_WASM, No as isOutputTargetSsrWasm, Ns as STANDALONE, Oo as isOutputTargetDocsReadme, Os as LOADER_BUNDLE, Po as isOutputTargetStandalone, Ps as STATS, Qa as hasDependency, Qo as augmentDiagnosticWithNode, Ro as isValidConfigOutputTarget, Rs as VALID_CONFIG_OUTPUT_TARGETS, So as isOutputTargetDistLazy, Ss as EVENT_FLAGS, To as isOutputTargetDocsCustom, Ts as HOST_FLAGS, Uo as buildJsonFileError, Vo as TASK_CANCELED_MSG, Vs as XLINK_NS, Wa as ModeValidationError, Wo as buildWarn, Xa as generatePreamble, Xo as normalizeDiagnostics, Ya as createJsVarName, Yo as escapeHtml, Za as getTextDocs, Zo as splitLineBreaks, _o as getComponentsFromModules, _s as DOCS_CUSTOM, ao as readOnlyArrayHasStringMember, as as formatLazyBundleRuntimeMeta, bo as isOutputTargetCopy, bs as DOCS_README, co as getSourceMappingUrlForEndOfFile, cs as CMP_FLAGS, do as result_d_exports, ds as COLLECTION_MANIFEST_FILE_NAME, eo as isJsFile, es as loadTypeScriptDiagnostics, fo as FilterComponentsResult, fs as COPY, go as getComponentsDtsTypesFilePath, gs as DOCS_AGENT_SKILL, ho as getComponentsDtsSrcFilePath, hs as DIST_LAZY, io as parsePackageJson, is as formatComponentRuntimeMeta, jo as isOutputTargetLoaderBundle, js as SSR, ko as isOutputTargetDocsVscode, ks as MEMBER_FLAGS, lo as getSourceMappingUrlLinker, ls as COLLECTION, mo as filterExcludedComponents, ms as DEFAULT_STYLE_MODE, no as isTsFile, ns as isRolldownError, oo as readPackageJson, os as stringifyRuntimeData, po as filterActiveTargets, ps as CUSTOM, qa as ParsePackageJsonResult, qo as hasWarning, ro as isTsxFile, rs as loadRolldownDiagnostics, so as getInlineSourceMappingUrlLinker, ss as ASSETS, to as isJsxFile, ts as createOnWarnFn, uo as rolldownToStencilSourceMap, us as COLLECTION_APP_DATA_FILE_NAME, vo as isOutputTargetAssets, vs as DOCS_CUSTOM_ELEMENTS_MANIFEST, wo as isOutputTargetDocsAgentSkill, ws as GLOBAL_STYLE, xo as isOutputTargetCustom, xs as DOCS_VSCODE, yo as isOutputTargetCollection, ys as DOCS_JSON, zo as relativeImport, zs as WATCH_FLAGS } from "../../index-
|
|
1
|
+
import { $a as isDtsFile, $o as loadTypeScriptDiagnostic, Ao as isOutputTargetGlobalStyle, As as NODE_TYPES, Bo as shouldExcludeComponent, Bs as WWW, Co as isOutputTargetDocs, Cs as GENERATED_DTS, Do as isOutputTargetDocsJson, Ds as LISTENER_FLAGS, Eo as isOutputTargetDocsCustomElementsManifest, Es as HTML_NS, Fo as isOutputTargetStats, Fs as STYLE_EXT, Ga as validateComponentModes, Go as catchError, Ho as buildError, Io as isOutputTargetTypes, Is as SVG_NS, Ja as addDocBlock, Jo as shouldIgnoreError, Ka as validateComponentTag, Ko as hasError, Lo as isOutputTargetWww, Ls as TYPES, Mo as isOutputTargetSsr, Ms as SSR_WASM, No as isOutputTargetSsrWasm, Ns as STANDALONE, Oo as isOutputTargetDocsReadme, Os as LOADER_BUNDLE, Po as isOutputTargetStandalone, Ps as STATS, Qa as hasDependency, Qo as augmentDiagnosticWithNode, Ro as isValidConfigOutputTarget, Rs as VALID_CONFIG_OUTPUT_TARGETS, So as isOutputTargetDistLazy, Ss as EVENT_FLAGS, To as isOutputTargetDocsCustom, Ts as HOST_FLAGS, Uo as buildJsonFileError, Vo as TASK_CANCELED_MSG, Vs as XLINK_NS, Wa as ModeValidationError, Wo as buildWarn, Xa as generatePreamble, Xo as normalizeDiagnostics, Ya as createJsVarName, Yo as escapeHtml, Za as getTextDocs, Zo as splitLineBreaks, _o as getComponentsFromModules, _s as DOCS_CUSTOM, ao as readOnlyArrayHasStringMember, as as formatLazyBundleRuntimeMeta, bo as isOutputTargetCopy, bs as DOCS_README, co as getSourceMappingUrlForEndOfFile, cs as CMP_FLAGS, do as result_d_exports, ds as COLLECTION_MANIFEST_FILE_NAME, eo as isJsFile, es as loadTypeScriptDiagnostics, fo as FilterComponentsResult, fs as COPY, go as getComponentsDtsTypesFilePath, gs as DOCS_AGENT_SKILL, ho as getComponentsDtsSrcFilePath, hs as DIST_LAZY, io as parsePackageJson, is as formatComponentRuntimeMeta, jo as isOutputTargetLoaderBundle, js as SSR, ko as isOutputTargetDocsVscode, ks as MEMBER_FLAGS, lo as getSourceMappingUrlLinker, ls as COLLECTION, mo as filterExcludedComponents, ms as DEFAULT_STYLE_MODE, no as isTsFile, ns as isRolldownError, oo as readPackageJson, os as stringifyRuntimeData, po as filterActiveTargets, ps as CUSTOM, qa as ParsePackageJsonResult, qo as hasWarning, ro as isTsxFile, rs as loadRolldownDiagnostics, so as getInlineSourceMappingUrlLinker, ss as ASSETS, to as isJsxFile, ts as createOnWarnFn, uo as rolldownToStencilSourceMap, us as COLLECTION_APP_DATA_FILE_NAME, vo as isOutputTargetAssets, vs as DOCS_CUSTOM_ELEMENTS_MANIFEST, wo as isOutputTargetDocsAgentSkill, ws as GLOBAL_STYLE, xo as isOutputTargetCustom, xs as DOCS_VSCODE, yo as isOutputTargetCollection, ys as DOCS_JSON, zo as relativeImport, zs as WATCH_FLAGS } from "../../index-BcfVWmNG.mjs";
|
|
2
2
|
//#region src/utils/byte-size.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Used to learn the size of a string in bytes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import { S as HYDRATED_CSS } from "./client-
|
|
3
|
-
import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME,
|
|
2
|
+
import { S as HYDRATED_CSS } from "./client-BVfiFFJ4.mjs";
|
|
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-Cpp3qc3u.mjs";
|
|
4
4
|
import { E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, c as err, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, l as map, m as loadTypeScriptDiagnostics, n as validateComponentTag, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, u as ok, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "./validation-DAdGTrys.mjs";
|
|
5
5
|
import { $ as catchError, A as isOutputTargetDocsVscode, B as relativeImport, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetStandalone, G as normalizeFsPathQuery, H as join$2, I as isOutputTargetStats, J as resolve$2, K as normalizePath, L as isOutputTargetTypes, M as isOutputTargetLoaderBundle, N as isOutputTargetSsr, O as isOutputTargetDocsJson, P as isOutputTargetSsrWasm, Q as buildWarn, R as isOutputTargetWww, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, W as normalizeFsPath, X as buildError, Z as buildJsonFileError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as hasError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, o as isDtsFile, p as readPackageJson, q as relative$1, r as generatePreamble, rt as isGlob, t as addDocBlock, tt as hasWarning, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isValidConfigOutputTarget } from "./util-IKfWWLJo.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-DQBayfoI.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";
|
|
@@ -460,9 +460,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
460
460
|
};
|
|
461
461
|
//#endregion
|
|
462
462
|
//#region src/version.ts
|
|
463
|
-
const version = "5.0.0-alpha.
|
|
464
|
-
const buildId = "
|
|
465
|
-
const vermoji = "
|
|
463
|
+
const version = "5.0.0-alpha.35";
|
|
464
|
+
const buildId = "1787589757";
|
|
465
|
+
const vermoji = "🔭";
|
|
466
466
|
/**
|
|
467
467
|
* Get the installed version of a tool/dependency.
|
|
468
468
|
* Handles packages with exports maps that point to subdirectories.
|
|
@@ -617,6 +617,7 @@ const getModuleLegacy = (compilerCtx, sourceFilePath) => {
|
|
|
617
617
|
hasVdomKey: false,
|
|
618
618
|
hasVdomListener: false,
|
|
619
619
|
hasVdomPropOrAttr: false,
|
|
620
|
+
hasVdomPropOrAttrPrefix: false,
|
|
620
621
|
hasVdomRef: false,
|
|
621
622
|
hasVdomRender: false,
|
|
622
623
|
hasVdomStyle: false,
|
|
@@ -864,6 +865,7 @@ const getBuildFeatures = (cmps) => {
|
|
|
864
865
|
vdomKey: cmps.some((c) => c.hasVdomKey),
|
|
865
866
|
vdomListener: cmps.some((c) => c.hasVdomListener),
|
|
866
867
|
vdomPropOrAttr: cmps.some((c) => c.hasVdomPropOrAttr),
|
|
868
|
+
vdomPropOrAttrPrefix: cmps.some((c) => c.hasVdomPropOrAttrPrefix),
|
|
867
869
|
vdomRef: cmps.some((c) => c.hasVdomRef),
|
|
868
870
|
vdomRender: cmps.some((c) => c.hasVdomRender),
|
|
869
871
|
vdomStyle: cmps.some((c) => c.hasVdomStyle),
|
|
@@ -884,6 +886,7 @@ const updateComponentBuildConditionals = (moduleMap, cmps) => {
|
|
|
884
886
|
getModuleImports(moduleMap, cmp.sourceFilePath, []).forEach((importedModule) => {
|
|
885
887
|
cmp.hasVdomAttribute = cmp.hasVdomAttribute || importedModule.hasVdomAttribute;
|
|
886
888
|
cmp.hasVdomPropOrAttr = cmp.hasVdomPropOrAttr || importedModule.hasVdomPropOrAttr;
|
|
889
|
+
cmp.hasVdomPropOrAttrPrefix = cmp.hasVdomPropOrAttrPrefix || importedModule.hasVdomPropOrAttrPrefix;
|
|
887
890
|
cmp.hasVdomXlink = cmp.hasVdomXlink || importedModule.hasVdomXlink;
|
|
888
891
|
cmp.hasVdomClass = cmp.hasVdomClass || importedModule.hasVdomClass;
|
|
889
892
|
cmp.hasVdomFunctional = cmp.hasVdomFunctional || importedModule.hasVdomFunctional;
|
|
@@ -4554,6 +4557,7 @@ const createModule = (staticSourceFile, staticSourceFileText, emitFilepath) => (
|
|
|
4554
4557
|
hasVdomKey: false,
|
|
4555
4558
|
hasVdomListener: false,
|
|
4556
4559
|
hasVdomPropOrAttr: false,
|
|
4560
|
+
hasVdomPropOrAttrPrefix: false,
|
|
4557
4561
|
hasVdomRef: false,
|
|
4558
4562
|
hasVdomRender: false,
|
|
4559
4563
|
hasVdomStyle: false,
|
|
@@ -12861,6 +12865,7 @@ const gatherVdomMeta = (m, args, typeChecker) => {
|
|
|
12861
12865
|
m.hasVdomKey = true;
|
|
12862
12866
|
m.hasVdomListener = true;
|
|
12863
12867
|
m.hasVdomPropOrAttr = true;
|
|
12868
|
+
m.hasVdomPropOrAttrPrefix = true;
|
|
12864
12869
|
m.hasVdomRef = true;
|
|
12865
12870
|
m.hasVdomStyle = true;
|
|
12866
12871
|
m.hasVdomXlink = true;
|
|
@@ -12874,6 +12879,7 @@ const gatherVdomMeta = (m, args, typeChecker) => {
|
|
|
12874
12879
|
m.hasVdomKey = true;
|
|
12875
12880
|
m.hasVdomListener = true;
|
|
12876
12881
|
m.hasVdomPropOrAttr = true;
|
|
12882
|
+
m.hasVdomPropOrAttrPrefix = true;
|
|
12877
12883
|
m.hasVdomRef = true;
|
|
12878
12884
|
m.hasVdomStyle = true;
|
|
12879
12885
|
m.hasVdomXlink = true;
|
|
@@ -12888,7 +12894,8 @@ const gatherVdomMeta = (m, args, typeChecker) => {
|
|
|
12888
12894
|
else if (attrName.startsWith("xlink")) {
|
|
12889
12895
|
m.hasVdomXlink = true;
|
|
12890
12896
|
m.hasVdomPropOrAttr = true;
|
|
12891
|
-
} else m.
|
|
12897
|
+
} else if (attrName.startsWith("attr:") || attrName.startsWith("prop:")) m.hasVdomPropOrAttrPrefix = true;
|
|
12898
|
+
else m.hasVdomPropOrAttr = true;
|
|
12892
12899
|
if (attrName === "part" && ts.isPropertyAssignment(prop)) {
|
|
12893
12900
|
const partValue = resolveStaticStringValue(prop.initializer, typeChecker);
|
|
12894
12901
|
if (partValue !== void 0) m.htmlParts.push(...partValue.split(" ").filter((part) => part.length > 0));
|
|
@@ -16454,6 +16461,7 @@ const parseStaticComponentMeta = (compilerCtx, typeChecker, cmpNode, moduleFile,
|
|
|
16454
16461
|
hasVdomKey: false,
|
|
16455
16462
|
hasVdomListener: false,
|
|
16456
16463
|
hasVdomPropOrAttr: false,
|
|
16464
|
+
hasVdomPropOrAttrPrefix: false,
|
|
16457
16465
|
hasVdomRef: false,
|
|
16458
16466
|
hasVdomRender: false,
|
|
16459
16467
|
hasVdomStyle: false,
|
|
@@ -19406,9 +19414,6 @@ const validateDocs$1 = (config, diagnostics, userOutputs) => {
|
|
|
19406
19414
|
userOutputs.filter(isOutputTargetDocsJson).forEach((jsonDocsOutput) => {
|
|
19407
19415
|
docsOutputs.push(validateJsonDocsOutputTarget(config, diagnostics, jsonDocsOutput));
|
|
19408
19416
|
});
|
|
19409
|
-
if (!config.devMode || config._docsFlag) {
|
|
19410
|
-
if (!userOutputs.some(isOutputTargetDocsReadme)) docsOutputs.push(validateReadmeOutputTarget(config, { type: DOCS_README }));
|
|
19411
|
-
}
|
|
19412
19417
|
userOutputs.filter(isOutputTargetDocsReadme).forEach((readmeDocsOutput) => {
|
|
19413
19418
|
docsOutputs.push(validateReadmeOutputTarget(config, readmeDocsOutput));
|
|
19414
19419
|
});
|
|
@@ -684,6 +684,8 @@ interface BuildFeatures {
|
|
|
684
684
|
vdomKey: boolean;
|
|
685
685
|
vdomListener: boolean;
|
|
686
686
|
vdomPropOrAttr: boolean;
|
|
687
|
+
/** True when at least one component uses the explicit `attr:`/`prop:` JSX prefix. */
|
|
688
|
+
vdomPropOrAttrPrefix: boolean;
|
|
687
689
|
vdomRef: boolean;
|
|
688
690
|
vdomStyle: boolean;
|
|
689
691
|
vdomText: boolean;
|
|
@@ -1081,6 +1083,7 @@ interface ComponentCompilerFeatures {
|
|
|
1081
1083
|
hasVdomKey: boolean;
|
|
1082
1084
|
hasVdomListener: boolean;
|
|
1083
1085
|
hasVdomPropOrAttr: boolean;
|
|
1086
|
+
hasVdomPropOrAttrPrefix: boolean;
|
|
1084
1087
|
hasVdomRef: boolean;
|
|
1085
1088
|
hasVdomRender: boolean;
|
|
1086
1089
|
hasVdomStyle: boolean;
|
|
@@ -1535,6 +1538,7 @@ interface Module {
|
|
|
1535
1538
|
hasVdomKey: boolean;
|
|
1536
1539
|
hasVdomListener: boolean;
|
|
1537
1540
|
hasVdomPropOrAttr: boolean;
|
|
1541
|
+
hasVdomPropOrAttrPrefix: boolean;
|
|
1538
1542
|
hasVdomRef: boolean;
|
|
1539
1543
|
hasVdomRender: boolean;
|
|
1540
1544
|
hasVdomStyle: boolean;
|
|
@@ -4581,6 +4581,8 @@ interface BuildFeatures {
|
|
|
4581
4581
|
vdomKey: boolean;
|
|
4582
4582
|
vdomListener: boolean;
|
|
4583
4583
|
vdomPropOrAttr: boolean;
|
|
4584
|
+
/** True when at least one component uses the explicit `attr:`/`prop:` JSX prefix. */
|
|
4585
|
+
vdomPropOrAttrPrefix: boolean;
|
|
4584
4586
|
vdomRef: boolean;
|
|
4585
4587
|
vdomStyle: boolean;
|
|
4586
4588
|
vdomText: boolean;
|
|
@@ -5029,6 +5031,7 @@ interface ComponentCompilerFeatures {
|
|
|
5029
5031
|
hasVdomKey: boolean;
|
|
5030
5032
|
hasVdomListener: boolean;
|
|
5031
5033
|
hasVdomPropOrAttr: boolean;
|
|
5034
|
+
hasVdomPropOrAttrPrefix: boolean;
|
|
5032
5035
|
hasVdomRef: boolean;
|
|
5033
5036
|
hasVdomRender: boolean;
|
|
5034
5037
|
hasVdomStyle: boolean;
|
|
@@ -5700,6 +5703,7 @@ interface Module {
|
|
|
5700
5703
|
hasVdomKey: boolean;
|
|
5701
5704
|
hasVdomListener: boolean;
|
|
5702
5705
|
hasVdomPropOrAttr: boolean;
|
|
5706
|
+
hasVdomPropOrAttrPrefix: boolean;
|
|
5703
5707
|
hasVdomRef: boolean;
|
|
5704
5708
|
hasVdomRender: boolean;
|
|
5705
5709
|
hasVdomStyle: boolean;
|
|
@@ -1382,6 +1382,8 @@ interface BuildFeatures {
|
|
|
1382
1382
|
vdomKey: boolean;
|
|
1383
1383
|
vdomListener: boolean;
|
|
1384
1384
|
vdomPropOrAttr: boolean;
|
|
1385
|
+
/** True when at least one component uses the explicit `attr:`/`prop:` JSX prefix. */
|
|
1386
|
+
vdomPropOrAttrPrefix: boolean;
|
|
1385
1387
|
vdomRef: boolean;
|
|
1386
1388
|
vdomStyle: boolean;
|
|
1387
1389
|
vdomText: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ca as VNode, Et as HostElement, Sa as UserBuildConditionals, ba as ResolutionHandler, cn as RuntimeRef, ga as FunctionalComponent, ha as ErrorHandler, p as ChildType, va as RafCallback, xa as TagTransformer } from "./index-
|
|
1
|
+
import { Ca as VNode, Et as HostElement, Sa as UserBuildConditionals, ba as ResolutionHandler, cn as RuntimeRef, ga as FunctionalComponent, ha as ErrorHandler, p as ChildType, va as RafCallback, xa as TagTransformer } from "./index-BcfVWmNG.mjs";
|
|
2
2
|
//#region src/client/client-build.d.ts
|
|
3
3
|
declare const Build: UserBuildConditionals;
|
|
4
4
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-
|
|
1
|
+
import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-BVfiFFJ4.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-BVfiFFJ4.mjs";
|
|
3
3
|
import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
|
|
4
4
|
import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-IKfWWLJo.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1821,7 +1821,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1821
1821
|
if (oldValue) plt.rel(elm, memberName, oldValue, capture);
|
|
1822
1822
|
if (newValue) plt.ael(elm, memberName, newValue, capture);
|
|
1823
1823
|
}
|
|
1824
|
-
} else if (BUILD.
|
|
1824
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
1825
1825
|
const propName = memberName.slice(5);
|
|
1826
1826
|
let attrName;
|
|
1827
1827
|
if (BUILD.member) {
|
|
@@ -1836,7 +1836,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1836
1836
|
if (newValue !== false || elm.getAttribute(attrName) === "") elm.removeAttribute(attrName);
|
|
1837
1837
|
} else elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
1838
1838
|
return;
|
|
1839
|
-
} else if (BUILD.
|
|
1839
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
1840
1840
|
const propName = memberName.slice(5);
|
|
1841
1841
|
try {
|
|
1842
1842
|
elm[propName] = newValue;
|
|
@@ -1815,7 +1815,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1815
1815
|
if (oldValue) plt.rel(elm, memberName, oldValue, capture);
|
|
1816
1816
|
if (newValue) plt.ael(elm, memberName, newValue, capture);
|
|
1817
1817
|
}
|
|
1818
|
-
} else if (BUILD$1.
|
|
1818
|
+
} else if (BUILD$1.vdomPropOrAttrPrefix && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
1819
1819
|
const propName = memberName.slice(5);
|
|
1820
1820
|
let attrName;
|
|
1821
1821
|
if (BUILD$1.member) {
|
|
@@ -1830,7 +1830,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1830
1830
|
if (newValue !== false || elm.getAttribute(attrName) === "") elm.removeAttribute(attrName);
|
|
1831
1831
|
} else elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
1832
1832
|
return;
|
|
1833
|
-
} else if (BUILD$1.
|
|
1833
|
+
} else if (BUILD$1.vdomPropOrAttrPrefix && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
1834
1834
|
const propName = memberName.slice(5);
|
|
1835
1835
|
try {
|
|
1836
1836
|
elm[propName] = newValue;
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ResolutionHandler, S as ReactiveControllerHostInterface, T as VNode, _ as CustomElementsDefineOptions, a as ComponentConstructor, b as JSXBase, c as ComponentRuntimeMeta, d as HostRef, f as LazyBundlesRuntimeData, g as ComponentInterface, h as RuntimeRef, i as ChildType, l as ComponentRuntimeMetaCompact, m as RenderNode, o as ComponentConstructorChangeHandlers, p as PlatformRuntime, s as ComponentRuntimeHostListener, u as HostElement, v as FunctionalComponent, w as TagTransformer, x as MixedInCtor, y as HTMLStencilElement } from "../index-
|
|
1
|
+
import { C as ResolutionHandler, S as ReactiveControllerHostInterface, T as VNode, _ as CustomElementsDefineOptions, a as ComponentConstructor, b as JSXBase, c as ComponentRuntimeMeta, d as HostRef, f as LazyBundlesRuntimeData, g as ComponentInterface, h as RuntimeRef, i as ChildType, l as ComponentRuntimeMetaCompact, m as RenderNode, o as ComponentConstructorChangeHandlers, p as PlatformRuntime, s as ComponentRuntimeHostListener, u as HostElement, v as FunctionalComponent, w as TagTransformer, x as MixedInCtor, y as HTMLStencilElement } from "../index-BsC_D1Ve.js";
|
|
2
2
|
//#region src/runtime/asset-path.d.ts
|
|
3
3
|
declare const getAssetPath: (path: string) => string;
|
|
4
4
|
declare const setAssetPath: (path: string) => string;
|
package/dist/runtime/index.js
CHANGED
|
@@ -1687,7 +1687,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1687
1687
|
if (oldValue) plt.rel(elm, memberName, oldValue, capture);
|
|
1688
1688
|
if (newValue) plt.ael(elm, memberName, newValue, capture);
|
|
1689
1689
|
}
|
|
1690
|
-
} else if (BUILD.
|
|
1690
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
1691
1691
|
const propName = memberName.slice(5);
|
|
1692
1692
|
let attrName;
|
|
1693
1693
|
if (BUILD.member) {
|
|
@@ -1702,7 +1702,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1702
1702
|
if (newValue !== false || elm.getAttribute(attrName) === "") elm.removeAttribute(attrName);
|
|
1703
1703
|
} else elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
1704
1704
|
return;
|
|
1705
|
-
} else if (BUILD.
|
|
1705
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
1706
1706
|
const propName = memberName.slice(5);
|
|
1707
1707
|
try {
|
|
1708
1708
|
elm[propName] = newValue;
|
|
@@ -1435,7 +1435,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1435
1435
|
if (oldValue) plt.rel(elm, memberName, oldValue, capture);
|
|
1436
1436
|
if (newValue) plt.ael(elm, memberName, newValue, capture);
|
|
1437
1437
|
}
|
|
1438
|
-
} else if (BUILD$1.
|
|
1438
|
+
} else if (BUILD$1.vdomPropOrAttrPrefix && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
1439
1439
|
const propName = memberName.slice(5);
|
|
1440
1440
|
let attrName;
|
|
1441
1441
|
if (BUILD$1.member) {
|
|
@@ -1450,7 +1450,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1450
1450
|
if (newValue !== false || elm.getAttribute(attrName) === "") elm.removeAttribute(attrName);
|
|
1451
1451
|
} else elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
1452
1452
|
return;
|
|
1453
|
-
} else if (BUILD$1.
|
|
1453
|
+
} else if (BUILD$1.vdomPropOrAttrPrefix && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
1454
1454
|
const propName = memberName.slice(5);
|
|
1455
1455
|
try {
|
|
1456
1456
|
elm[propName] = newValue;
|
|
@@ -7095,12 +7095,12 @@ function createCustomElement(customElements, ownerDocument, tagName) {
|
|
|
7095
7095
|
const host = new Proxy({}, {
|
|
7096
7096
|
get(obj, prop) {
|
|
7097
7097
|
const elm = proxyElements.get(host);
|
|
7098
|
-
if (elm != null) return elm
|
|
7098
|
+
if (elm != null) return Reflect.get(elm, prop, host);
|
|
7099
7099
|
return obj[prop];
|
|
7100
7100
|
},
|
|
7101
7101
|
set(obj, prop, val) {
|
|
7102
7102
|
const elm = proxyElements.get(host);
|
|
7103
|
-
if (elm != null) elm
|
|
7103
|
+
if (elm != null) Reflect.set(elm, prop, val, host);
|
|
7104
7104
|
else obj[prop] = val;
|
|
7105
7105
|
return true;
|
|
7106
7106
|
},
|
|
@@ -7108,6 +7108,26 @@ function createCustomElement(customElements, ownerDocument, tagName) {
|
|
|
7108
7108
|
if (prop in proxyElements.get(host)) return true;
|
|
7109
7109
|
if (prop in obj) return true;
|
|
7110
7110
|
return false;
|
|
7111
|
+
},
|
|
7112
|
+
defineProperty(obj, prop, descriptor) {
|
|
7113
|
+
const elm = proxyElements.get(host);
|
|
7114
|
+
return Reflect.defineProperty(elm != null ? elm : obj, prop, descriptor);
|
|
7115
|
+
},
|
|
7116
|
+
deleteProperty(obj, prop) {
|
|
7117
|
+
const elm = proxyElements.get(host);
|
|
7118
|
+
return Reflect.deleteProperty(elm != null ? elm : obj, prop);
|
|
7119
|
+
},
|
|
7120
|
+
getOwnPropertyDescriptor(obj, prop) {
|
|
7121
|
+
const elm = proxyElements.get(host);
|
|
7122
|
+
return Reflect.getOwnPropertyDescriptor(elm != null ? elm : obj, prop);
|
|
7123
|
+
},
|
|
7124
|
+
ownKeys(obj) {
|
|
7125
|
+
const elm = proxyElements.get(host);
|
|
7126
|
+
return Reflect.ownKeys(elm != null ? elm : obj);
|
|
7127
|
+
},
|
|
7128
|
+
getPrototypeOf(obj) {
|
|
7129
|
+
const elm = proxyElements.get(host);
|
|
7130
|
+
return Reflect.getPrototypeOf(elm != null ? elm : obj);
|
|
7111
7131
|
}
|
|
7112
7132
|
});
|
|
7113
7133
|
const elm = new MockHTMLElement(ownerDocument, tagName);
|
|
@@ -7304,9 +7324,18 @@ var MockFocusEvent = class extends MockUIEvent {
|
|
|
7304
7324
|
var MockEventListener = class {
|
|
7305
7325
|
type;
|
|
7306
7326
|
handler;
|
|
7307
|
-
|
|
7327
|
+
capture;
|
|
7328
|
+
once;
|
|
7329
|
+
constructor(type, handler, options) {
|
|
7308
7330
|
this.type = type;
|
|
7309
7331
|
this.handler = handler;
|
|
7332
|
+
if (typeof options === "boolean") {
|
|
7333
|
+
this.capture = options;
|
|
7334
|
+
this.once = false;
|
|
7335
|
+
} else {
|
|
7336
|
+
this.capture = options?.capture ?? false;
|
|
7337
|
+
this.once = options?.once ?? false;
|
|
7338
|
+
}
|
|
7310
7339
|
}
|
|
7311
7340
|
};
|
|
7312
7341
|
/**
|
|
@@ -7315,11 +7344,12 @@ var MockEventListener = class {
|
|
|
7315
7344
|
* @param elm - the element to add the listener to
|
|
7316
7345
|
* @param type - the event type to listen for
|
|
7317
7346
|
* @param handler - the event handler function
|
|
7347
|
+
* @param options - `capture` and `once` are supported; `passive` and `signal` are accepted but not implemented
|
|
7318
7348
|
*/
|
|
7319
|
-
function addEventListener(elm, type, handler) {
|
|
7349
|
+
function addEventListener(elm, type, handler, options) {
|
|
7320
7350
|
const target = elm;
|
|
7321
7351
|
if (target.__listeners == null) target.__listeners = [];
|
|
7322
|
-
target.__listeners.push(new MockEventListener(type, handler));
|
|
7352
|
+
target.__listeners.push(new MockEventListener(type, handler, options));
|
|
7323
7353
|
}
|
|
7324
7354
|
/**
|
|
7325
7355
|
* Remove an event listener from an element.
|
|
@@ -7327,11 +7357,13 @@ function addEventListener(elm, type, handler) {
|
|
|
7327
7357
|
* @param elm - the element to remove the listener from
|
|
7328
7358
|
* @param type - the event type to remove
|
|
7329
7359
|
* @param handler - the event handler function to remove
|
|
7360
|
+
* @param options - only `capture` is relevant here, since listeners are keyed by type + handler + capture
|
|
7330
7361
|
*/
|
|
7331
|
-
function removeEventListener(elm, type, handler) {
|
|
7362
|
+
function removeEventListener(elm, type, handler, options) {
|
|
7332
7363
|
const target = elm;
|
|
7364
|
+
const capture = typeof options === "boolean" ? options : options?.capture ?? false;
|
|
7333
7365
|
if (target != null && Array.isArray(target.__listeners) === true) {
|
|
7334
|
-
const elmListener = target.__listeners.find((e) => e.type === type && e.handler === handler);
|
|
7366
|
+
const elmListener = target.__listeners.find((e) => e.type === type && e.handler === handler && e.capture === capture);
|
|
7335
7367
|
if (elmListener != null) {
|
|
7336
7368
|
const index = target.__listeners.indexOf(elmListener);
|
|
7337
7369
|
target.__listeners.splice(index, 1);
|
|
@@ -7357,6 +7389,7 @@ function triggerEventListener(elm, ev) {
|
|
|
7357
7389
|
const target = elm;
|
|
7358
7390
|
ev.currentTarget = elm;
|
|
7359
7391
|
if (Array.isArray(target.__listeners) === true) target.__listeners.filter((e) => e.type === ev.type).forEach((listener) => {
|
|
7392
|
+
if (listener.once) removeEventListener(target, listener.type, listener.handler, { capture: listener.capture });
|
|
7360
7393
|
try {
|
|
7361
7394
|
listener.handler.call(target, ev);
|
|
7362
7395
|
} catch (err) {
|
|
@@ -8152,8 +8185,9 @@ var MockNode = class {
|
|
|
8152
8185
|
}
|
|
8153
8186
|
get nextSibling() {
|
|
8154
8187
|
if (this.parentNode != null) {
|
|
8155
|
-
const
|
|
8156
|
-
|
|
8188
|
+
const selfIndex = this.parentNode.childNodes.indexOf(this);
|
|
8189
|
+
if (selfIndex === -1) return null;
|
|
8190
|
+
return this.parentNode.childNodes[selfIndex + 1] || null;
|
|
8157
8191
|
}
|
|
8158
8192
|
return null;
|
|
8159
8193
|
}
|
|
@@ -8214,11 +8248,11 @@ var MockNode = class {
|
|
|
8214
8248
|
set textContent(value) {
|
|
8215
8249
|
this._nodeValue = String(value);
|
|
8216
8250
|
}
|
|
8217
|
-
addEventListener(type, handler) {
|
|
8218
|
-
addEventListener(this, type, handler);
|
|
8251
|
+
addEventListener(type, handler, options) {
|
|
8252
|
+
addEventListener(this, type, handler, options);
|
|
8219
8253
|
}
|
|
8220
|
-
removeEventListener(type, handler) {
|
|
8221
|
-
removeEventListener(this, type, handler);
|
|
8254
|
+
removeEventListener(type, handler, options) {
|
|
8255
|
+
removeEventListener(this, type, handler, options);
|
|
8222
8256
|
}
|
|
8223
8257
|
dispatchEvent(ev) {
|
|
8224
8258
|
return dispatchEvent(this, ev);
|
|
@@ -8263,8 +8297,8 @@ var MockElement = class extends MockNode {
|
|
|
8263
8297
|
this.__shadowRoot = null;
|
|
8264
8298
|
this.__attributeMap = null;
|
|
8265
8299
|
}
|
|
8266
|
-
addEventListener(type, handler) {
|
|
8267
|
-
addEventListener(this, type, handler);
|
|
8300
|
+
addEventListener(type, handler, options) {
|
|
8301
|
+
addEventListener(this, type, handler, options);
|
|
8268
8302
|
}
|
|
8269
8303
|
attachShadow(_opts) {
|
|
8270
8304
|
const shadowRoot = this.ownerDocument.createDocumentFragment();
|
|
@@ -8531,8 +8565,9 @@ var MockElement = class extends MockNode {
|
|
|
8531
8565
|
get nextElementSibling() {
|
|
8532
8566
|
const parentElement = this.parentElement;
|
|
8533
8567
|
if (parentElement != null && (parentElement.nodeType === 1 || parentElement.nodeType === 11 || parentElement.nodeType === 9)) {
|
|
8534
|
-
const
|
|
8535
|
-
|
|
8568
|
+
const selfIndex = parentElement.children.indexOf(this);
|
|
8569
|
+
if (selfIndex === -1) return null;
|
|
8570
|
+
return parentElement.children[selfIndex + 1] || null;
|
|
8536
8571
|
}
|
|
8537
8572
|
return null;
|
|
8538
8573
|
}
|
|
@@ -8546,8 +8581,9 @@ var MockElement = class extends MockNode {
|
|
|
8546
8581
|
get previousElementSibling() {
|
|
8547
8582
|
const parentElement = this.parentElement;
|
|
8548
8583
|
if (parentElement != null && (parentElement.nodeType === 1 || parentElement.nodeType === 11 || parentElement.nodeType === 9)) {
|
|
8549
|
-
const
|
|
8550
|
-
|
|
8584
|
+
const selfIndex = parentElement.children.indexOf(this);
|
|
8585
|
+
if (selfIndex === -1) return null;
|
|
8586
|
+
return parentElement.children[selfIndex - 1] || null;
|
|
8551
8587
|
}
|
|
8552
8588
|
return null;
|
|
8553
8589
|
}
|
|
@@ -8585,8 +8621,8 @@ var MockElement = class extends MockNode {
|
|
|
8585
8621
|
if (checkAttributeChanged(this) === true) attributeChanged(this, attrName, attr.value, null);
|
|
8586
8622
|
}
|
|
8587
8623
|
}
|
|
8588
|
-
removeEventListener(type, handler) {
|
|
8589
|
-
removeEventListener(this, type, handler);
|
|
8624
|
+
removeEventListener(type, handler, options) {
|
|
8625
|
+
removeEventListener(this, type, handler, options);
|
|
8590
8626
|
}
|
|
8591
8627
|
setAttribute(attrName, value) {
|
|
8592
8628
|
if (attrName === "style") this.style = value;
|
|
@@ -11211,6 +11247,7 @@ var MockIntersectionObserver = class {
|
|
|
11211
11247
|
}
|
|
11212
11248
|
unobserve() {}
|
|
11213
11249
|
};
|
|
11250
|
+
const DEFAULT_LOCATION_HREF = "http://localhost/";
|
|
11214
11251
|
var MockLocation = class {
|
|
11215
11252
|
ancestorOrigins = null;
|
|
11216
11253
|
protocol = "";
|
|
@@ -11241,6 +11278,9 @@ var MockLocation = class {
|
|
|
11241
11278
|
this.password = url.password;
|
|
11242
11279
|
this.origin = url.origin;
|
|
11243
11280
|
}
|
|
11281
|
+
constructor() {
|
|
11282
|
+
this.href = DEFAULT_LOCATION_HREF;
|
|
11283
|
+
}
|
|
11244
11284
|
assign(_url) {}
|
|
11245
11285
|
reload(_forcedReload) {}
|
|
11246
11286
|
replace(_url) {}
|
|
@@ -11442,8 +11482,8 @@ var MockWindow = class {
|
|
|
11442
11482
|
resetWindowDefaults(this);
|
|
11443
11483
|
resetWindowDimensions(this);
|
|
11444
11484
|
}
|
|
11445
|
-
addEventListener(type, handler) {
|
|
11446
|
-
addEventListener(this, type, handler);
|
|
11485
|
+
addEventListener(type, handler, options) {
|
|
11486
|
+
addEventListener(this, type, handler, options);
|
|
11447
11487
|
}
|
|
11448
11488
|
alert(msg) {
|
|
11449
11489
|
if (this.console) this.console.debug(msg);
|
|
@@ -11665,8 +11705,8 @@ var MockWindow = class {
|
|
|
11665
11705
|
get origin() {
|
|
11666
11706
|
return this.location.origin;
|
|
11667
11707
|
}
|
|
11668
|
-
removeEventListener(type, handler) {
|
|
11669
|
-
removeEventListener(this, type, handler);
|
|
11708
|
+
removeEventListener(type, handler, options) {
|
|
11709
|
+
removeEventListener(this, type, handler, options);
|
|
11670
11710
|
}
|
|
11671
11711
|
requestAnimationFrame(callback) {
|
|
11672
11712
|
return this.setTimeout(() => {
|
|
@@ -11976,7 +12016,8 @@ var MockDocument = class MockDocument extends MockHTMLElement {
|
|
|
11976
12016
|
this.#nwsapi = (0, import_nwsapi.default)({ document: this });
|
|
11977
12017
|
this.#nwsapi.configure({
|
|
11978
12018
|
LOGERRORS: false,
|
|
11979
|
-
VERBOSITY: false
|
|
12019
|
+
VERBOSITY: false,
|
|
12020
|
+
IDS_DUPES: false
|
|
11980
12021
|
});
|
|
11981
12022
|
}
|
|
11982
12023
|
return this.#nwsapi;
|
package/dist/signals/index.js
CHANGED
package/dist/sys/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-
|
|
1
|
+
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-DQBayfoI.mjs";
|
|
2
2
|
export { createNodeLogger, createNodeSys, setupNodeProcess };
|
package/dist/sys/node/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createWorkerMessageHandler } from "../../compiler-
|
|
2
|
-
import { t as createNodeSys } from "../../node-
|
|
1
|
+
import { l as createWorkerMessageHandler } from "../../compiler-Dvx_T9vu.mjs";
|
|
2
|
+
import { t as createNodeSys } from "../../node-DQBayfoI.mjs";
|
|
3
3
|
//#region src/sys/node/node-worker-thread.ts
|
|
4
4
|
/**
|
|
5
5
|
* Initialize a worker thread, setting up various machinery for managing
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -2997,6 +2997,8 @@ interface BuildFeatures {
|
|
|
2997
2997
|
vdomKey: boolean;
|
|
2998
2998
|
vdomListener: boolean;
|
|
2999
2999
|
vdomPropOrAttr: boolean;
|
|
3000
|
+
/** True when at least one component uses the explicit `attr:`/`prop:` JSX prefix. */
|
|
3001
|
+
vdomPropOrAttrPrefix: boolean;
|
|
3000
3002
|
vdomRef: boolean;
|
|
3001
3003
|
vdomStyle: boolean;
|
|
3002
3004
|
vdomText: boolean;
|
|
@@ -3394,6 +3396,7 @@ interface ComponentCompilerFeatures {
|
|
|
3394
3396
|
hasVdomKey: boolean;
|
|
3395
3397
|
hasVdomListener: boolean;
|
|
3396
3398
|
hasVdomPropOrAttr: boolean;
|
|
3399
|
+
hasVdomPropOrAttrPrefix: boolean;
|
|
3397
3400
|
hasVdomRef: boolean;
|
|
3398
3401
|
hasVdomRender: boolean;
|
|
3399
3402
|
hasVdomStyle: boolean;
|
|
@@ -3932,6 +3935,7 @@ interface Module {
|
|
|
3932
3935
|
hasVdomKey: boolean;
|
|
3933
3936
|
hasVdomListener: boolean;
|
|
3934
3937
|
hasVdomPropOrAttr: boolean;
|
|
3938
|
+
hasVdomPropOrAttrPrefix: boolean;
|
|
3935
3939
|
hasVdomRef: boolean;
|
|
3936
3940
|
hasVdomRender: boolean;
|
|
3937
3941
|
hasVdomStyle: boolean;
|
package/dist/testing/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import "@rollup/pluginutils";
|
|
|
31
31
|
import { createHash } from "crypto";
|
|
32
32
|
import { afterAll, vi } from "vitest";
|
|
33
33
|
//#region src/version.ts
|
|
34
|
-
const version = "5.0.0-alpha.
|
|
34
|
+
const version = "5.0.0-alpha.35";
|
|
35
35
|
const MEMBER_FLAGS = {
|
|
36
36
|
String: 1,
|
|
37
37
|
Number: 2,
|
|
@@ -619,6 +619,7 @@ const BUILD = {
|
|
|
619
619
|
vdomListener: true,
|
|
620
620
|
vdomRef: true,
|
|
621
621
|
vdomPropOrAttr: true,
|
|
622
|
+
vdomPropOrAttrPrefix: true,
|
|
622
623
|
vdomRender: true,
|
|
623
624
|
vdomStyle: true,
|
|
624
625
|
vdomText: true,
|
|
@@ -2228,7 +2229,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
2228
2229
|
if (oldValue) plt.rel(elm, memberName, oldValue, capture);
|
|
2229
2230
|
if (newValue) plt.ael(elm, memberName, newValue, capture);
|
|
2230
2231
|
}
|
|
2231
|
-
} else if (BUILD.
|
|
2232
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
2232
2233
|
const propName = memberName.slice(5);
|
|
2233
2234
|
let attrName;
|
|
2234
2235
|
if (BUILD.member) {
|
|
@@ -2243,7 +2244,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
2243
2244
|
if (newValue !== false || elm.getAttribute(attrName) === "") elm.removeAttribute(attrName);
|
|
2244
2245
|
} else elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
2245
2246
|
return;
|
|
2246
|
-
} else if (BUILD.
|
|
2247
|
+
} else if (BUILD.vdomPropOrAttrPrefix && memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
2247
2248
|
const propName = memberName.slice(5);
|
|
2248
2249
|
try {
|
|
2249
2250
|
elm[propName] = newValue;
|
|
@@ -5712,6 +5713,7 @@ const getBuildFeatures = (cmps) => {
|
|
|
5712
5713
|
vdomKey: cmps.some((c) => c.hasVdomKey),
|
|
5713
5714
|
vdomListener: cmps.some((c) => c.hasVdomListener),
|
|
5714
5715
|
vdomPropOrAttr: cmps.some((c) => c.hasVdomPropOrAttr),
|
|
5716
|
+
vdomPropOrAttrPrefix: cmps.some((c) => c.hasVdomPropOrAttrPrefix),
|
|
5715
5717
|
vdomRef: cmps.some((c) => c.hasVdomRef),
|
|
5716
5718
|
vdomRender: cmps.some((c) => c.hasVdomRender),
|
|
5717
5719
|
vdomStyle: cmps.some((c) => c.hasVdomStyle),
|
|
@@ -7698,6 +7700,7 @@ const mockComponentMeta = (overrides = {}) => ({
|
|
|
7698
7700
|
hasVdomKey: false,
|
|
7699
7701
|
hasVdomListener: false,
|
|
7700
7702
|
hasVdomPropOrAttr: false,
|
|
7703
|
+
hasVdomPropOrAttrPrefix: false,
|
|
7701
7704
|
hasVdomRef: false,
|
|
7702
7705
|
hasVdomRender: false,
|
|
7703
7706
|
hasVdomStyle: false,
|
|
@@ -7898,6 +7901,7 @@ const mockModule = (mod = {}) => ({
|
|
|
7898
7901
|
hasVdomKey: false,
|
|
7899
7902
|
hasVdomListener: false,
|
|
7900
7903
|
hasVdomPropOrAttr: false,
|
|
7904
|
+
hasVdomPropOrAttrPrefix: false,
|
|
7901
7905
|
hasVdomRef: false,
|
|
7902
7906
|
hasVdomRender: false,
|
|
7903
7907
|
hasVdomStyle: false,
|
|
@@ -7939,6 +7943,7 @@ function resetBuildConditionals(b) {
|
|
|
7939
7943
|
b.vdomFunctional = true;
|
|
7940
7944
|
b.vdomKey = true;
|
|
7941
7945
|
b.vdomPropOrAttr = true;
|
|
7946
|
+
b.vdomPropOrAttrPrefix = true;
|
|
7942
7947
|
b.vdomRef = true;
|
|
7943
7948
|
b.vdomListener = true;
|
|
7944
7949
|
b.vdomStyle = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.35",
|
|
4
4
|
"description": "A Compiler for Web Components and Progressive Web Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
"terser": "^5.50.0",
|
|
122
122
|
"tinyglobby": "^0.2.17",
|
|
123
123
|
"typescript": ">5.0.0 <7.0.0",
|
|
124
|
-
"@stencil/cli": "5.0.0-alpha.
|
|
125
|
-
"@stencil/
|
|
126
|
-
"@stencil/
|
|
124
|
+
"@stencil/cli": "5.0.0-alpha.35",
|
|
125
|
+
"@stencil/mock-doc": "5.0.0-alpha.35",
|
|
126
|
+
"@stencil/dev-server": "5.0.0-alpha.35"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@ionic/prettier-config": "^4.0.0",
|