@stencil/core 5.0.0-beta.10 → 5.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-data/index.d.ts +1 -1
- package/dist/{client-Db2rdxUM.mjs → client-CdFmjaQa.mjs} +6 -2
- package/dist/compiler/browser.js +1 -1
- 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-PoywOlbq.mjs → compiler-2EypBn_Y.mjs} +92 -10
- package/dist/declarations/stencil-public-compiler.d.ts +4 -0
- package/dist/declarations/stencil-public-runtime.d.ts +57 -55
- package/dist/{index-BXAcVN2j.d.ts → index-BHciXst1.d.ts} +57 -55
- package/dist/{index-BAP9T4CB.d.mts → index-CKnzMkZC.d.mts} +1 -1
- package/dist/{index-BvF31nqP.d.mts → index-Cw1NW9FW.d.mts} +4 -0
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-BKtLn2R9.mjs → node-HKfDhPR3.mjs} +1 -1
- package/dist/runtime/client/lazy.js +25 -13
- package/dist/runtime/client/runtime.d.ts +57 -55
- package/dist/runtime/client/runtime.js +25 -13
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +25 -13
- package/dist/runtime/server/index.d.mts +2 -1
- package/dist/runtime/server/index.mjs +45 -26
- package/dist/runtime/server/runner.mjs +8 -5
- package/dist/signals/index.d.ts +11 -2
- package/dist/signals/index.js +11 -1
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +4 -0
- package/dist/testing/index.mjs +26 -14
- 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-BHciXst1.js";
|
|
2
2
|
export { BUILD, Env, NAMESPACE };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as HOST_FLAGS, C as CMP_FLAGS, G as NODE_TYPES, Z as SVG_NS, o as isComplexType, s as isDef, x as queryNonceMetaTagContent } from "./helpers-Cpp3qc3u.mjs";
|
|
2
|
-
import
|
|
2
|
+
import * as SignalsCore from "@preact/signals-core";
|
|
3
3
|
//#region src/app-data/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* A collection of default build flags for a Stencil project.
|
|
@@ -722,6 +722,10 @@ const attachStyles = (hostRef) => {
|
|
|
722
722
|
*/
|
|
723
723
|
const getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & CMP_FLAGS.hasMode ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
724
724
|
//#endregion
|
|
725
|
+
//#region src/runtime/signals-core.ts
|
|
726
|
+
const getCore = () => globalThis[Symbol.for("stencil.preact-signals-core")] ??= SignalsCore;
|
|
727
|
+
const effect = (fn, options) => getCore().effect(fn, options);
|
|
728
|
+
//#endregion
|
|
725
729
|
//#region src/runtime/event-emitter.ts
|
|
726
730
|
/**
|
|
727
731
|
* Helper function to create & dispatch a custom Event on a provided target
|
|
@@ -1312,7 +1316,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
|
|
|
1312
1316
|
}
|
|
1313
1317
|
if (BUILD.vdomKey && idxInOld >= 0) {
|
|
1314
1318
|
elmToMove = oldCh[idxInOld];
|
|
1315
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) node = createElm(oldCh && oldCh[newStartIdx], newVNode,
|
|
1319
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
1316
1320
|
else {
|
|
1317
1321
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1318
1322
|
oldCh[idxInOld] = void 0;
|
package/dist/compiler/browser.js
CHANGED
|
@@ -1832,7 +1832,7 @@ const validateComponentTag = (tag) => {
|
|
|
1832
1832
|
};
|
|
1833
1833
|
//#endregion
|
|
1834
1834
|
//#region src/version.ts
|
|
1835
|
-
const version = "5.0.0-beta.
|
|
1835
|
+
const version = "5.0.0-beta.11";
|
|
1836
1836
|
//#endregion
|
|
1837
1837
|
//#region src/compiler/events.ts
|
|
1838
1838
|
const buildEvents = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CompilerSystemRemoveDirectoryResults, $n as JsonDocMethodParameter, $t as OutputTargetDocsReadme, A as CompilerDependency, An as StencilDevServerConfig, At as LogLevel, B as CompilerEventFsChange, Bn as WatcherCloseResults, Bt as OutputTarget, C as CacheStorage, Cn as SerializeDocumentOptions, Ct as HydrateFactoryOptions, D as Compiler, Dn as SsrDocumentOptions, Dt as LightDomPatches, E as CompileTarget, En as SitemapXmpResults, Et as LazyRequire, F as CompilerEventDirAdd, Fn as TranspileOptions, Ft as NodeResolveConfig, G as CompilerFsStats, Gt as OutputTargetCollection, H as CompilerFileWatcher, Hn as WorkerOptions, Ht as OutputTargetBase, I as CompilerEventDirDelete, In as TranspileResults, It as OptimizeCssInput, J as CompilerSystem, Jt as OutputTargetDistLazy, K as CompilerRequest, Kt as OutputTargetCopy, L as CompilerEventFileAdd, Ln as UnvalidatedConfig, Lt as OptimizeCssOutput, M as CompilerEventBuildLog, Mn as SystemDetails, Mt as LoggerLineUpdater, N as CompilerEventBuildNoChange, Nn as TransformOptions, Nt as LoggerTimeSpan, O as CompilerBuildResults, On as SsrFactoryOptions, Ot as LoadConfigInit, P as CompilerEventBuildStart, Pn as TranspileOnlyResults, Pt as ModeConfig, Q as CompilerSystemRemoveDirectoryOptions, Qt as OutputTargetDocsJson, R as CompilerEventFileDelete, Rn as ValidatedConfig, Rt as OptimizeJsInput, S as BuildResultsComponentGraph, Sn as RolldownConfig, St as HydrateDocumentOptions, T as CompileScriptMinifyOptions, Tn as SitemapXmpOpts, Tt as LOG_LEVELS, U as CompilerFileWatcherCallback, Ut as OutputTargetBaseNext, V as CompilerEventName, Vn as WorkerMainController, Vt as OutputTargetAssets, W as CompilerFileWatcherEvent, Wt as OutputTargetBuild, X as CompilerSystemCreateDirectoryResults, Xt as OutputTargetDocsCustom, Y as CompilerSystemCreateDirectoryOptions, Yt as OutputTargetDocsAgentSkill, Z as CompilerSystemRealpathResults, Zt as OutputTargetDocsCustomElementsManifest, _ as BuildNoChangeResults, _n as ResolveModuleIdOptions, _r as FsWriteResults, _t as DocsReadmeCustomColumn, an as OutputTargetStandalone, ar as JsonDocsListener, at as Config, b as BuildOutput, bn as RobotsTxtOpts, bt as HmrStyleUpdate, c as PrintLine, cn as OutputTargetWww, cr as JsonDocsPart, ct as CopyResults, d as SsrResults, dn as PlatformPath, dr as JsonDocsStyle, dt as CustomElementsExportBehavior, en as OutputTargetDocsVscode, er as JsonDocs, et as CompilerSystemRemoveFileResults, f as WorkerMsgHandler, fn as PrerenderConfig, fr as JsonDocsTag, ft as CustomElementsExportBehaviorOptions, g as BuildLog, gn as PrerenderStartOptions, gr as StyleDoc, gt as Diagnostic, h as BuildEvents, hn as PrerenderResults, hr as JsonDocsValue, ht as DevServerEditor, i as ComponentCompilerTypeReferences, in as OutputTargetSsrWasm, ir as JsonDocsEvent, it as CompilerWatcher, j as CompilerEventBuildFinish, jn as StencilDocsConfig, jt as Logger, k as CompilerBuildStart, kn as StencilConfig, kt as LoadConfigResults, ln as PageReloadStrategy, lr as JsonDocsProp, lt as CopyTask, m as BuildEmitEvents, mn as PrerenderOptions, mr as JsonDocsUsage, mt as DevServerConfig, n as CompilerWorkerContext, nn as OutputTargetLoaderBundle, nr as JsonDocsCustomState, nt as CompilerSystemRenamedPath, o as LazyBundlesRuntimeData, on as OutputTargetStats, or as JsonDocsMethod, ot as ConfigBundle, p as AutoprefixerOptions, pn as PrerenderHydrateOptions, pr as JsonDocsTypeLibrary, pt as DevServer, q as CompilerRequestResponse, qt as OutputTargetCustom, r as ComponentCompilerMeta, rn as OutputTargetSsr, rr as JsonDocsDependencyGraph, rt as CompilerSystemWriteFileResults, s as PackageJsonData, sn as OutputTargetTypes, sr as JsonDocsMethodReturn, st as ConfigCompat, tn as OutputTargetGlobalStyle, tr as JsonDocsComponent, tt as CompilerSystemRenameResults, un as ParsedPath, ur as JsonDocsSlot, ut as Credentials, v as BuildOnEventRemove, vn as ResolveModuleIdResults, vt as FsWatchResults, w as CliInitOptions, wn as ServiceWorkerConfig, wt as HydratedFlag, x as BuildOverrides, xn as RobotsTxtResults, xt as HotModuleReplacement, y as BuildOnEvents, yn as ResolveModuleOptions, yt as HistoryApiFallback, z as CompilerEventFileUpdate, zn as ValidatedOutputTargetWww, zt as OptimizeJsOutput } from "../index-
|
|
1
|
+
import { $ as CompilerSystemRemoveDirectoryResults, $n as JsonDocMethodParameter, $t as OutputTargetDocsReadme, A as CompilerDependency, An as StencilDevServerConfig, At as LogLevel, B as CompilerEventFsChange, Bn as WatcherCloseResults, Bt as OutputTarget, C as CacheStorage, Cn as SerializeDocumentOptions, Ct as HydrateFactoryOptions, D as Compiler, Dn as SsrDocumentOptions, Dt as LightDomPatches, E as CompileTarget, En as SitemapXmpResults, Et as LazyRequire, F as CompilerEventDirAdd, Fn as TranspileOptions, Ft as NodeResolveConfig, G as CompilerFsStats, Gt as OutputTargetCollection, H as CompilerFileWatcher, Hn as WorkerOptions, Ht as OutputTargetBase, I as CompilerEventDirDelete, In as TranspileResults, It as OptimizeCssInput, J as CompilerSystem, Jt as OutputTargetDistLazy, K as CompilerRequest, Kt as OutputTargetCopy, L as CompilerEventFileAdd, Ln as UnvalidatedConfig, Lt as OptimizeCssOutput, M as CompilerEventBuildLog, Mn as SystemDetails, Mt as LoggerLineUpdater, N as CompilerEventBuildNoChange, Nn as TransformOptions, Nt as LoggerTimeSpan, O as CompilerBuildResults, On as SsrFactoryOptions, Ot as LoadConfigInit, P as CompilerEventBuildStart, Pn as TranspileOnlyResults, Pt as ModeConfig, Q as CompilerSystemRemoveDirectoryOptions, Qt as OutputTargetDocsJson, R as CompilerEventFileDelete, Rn as ValidatedConfig, Rt as OptimizeJsInput, S as BuildResultsComponentGraph, Sn as RolldownConfig, St as HydrateDocumentOptions, T as CompileScriptMinifyOptions, Tn as SitemapXmpOpts, Tt as LOG_LEVELS, U as CompilerFileWatcherCallback, Ut as OutputTargetBaseNext, V as CompilerEventName, Vn as WorkerMainController, Vt as OutputTargetAssets, W as CompilerFileWatcherEvent, Wt as OutputTargetBuild, X as CompilerSystemCreateDirectoryResults, Xt as OutputTargetDocsCustom, Y as CompilerSystemCreateDirectoryOptions, Yt as OutputTargetDocsAgentSkill, Z as CompilerSystemRealpathResults, Zt as OutputTargetDocsCustomElementsManifest, _ as BuildNoChangeResults, _n as ResolveModuleIdOptions, _r as FsWriteResults, _t as DocsReadmeCustomColumn, an as OutputTargetStandalone, ar as JsonDocsListener, at as Config, b as BuildOutput, bn as RobotsTxtOpts, bt as HmrStyleUpdate, c as PrintLine, cn as OutputTargetWww, cr as JsonDocsPart, ct as CopyResults, d as SsrResults, dn as PlatformPath, dr as JsonDocsStyle, dt as CustomElementsExportBehavior, en as OutputTargetDocsVscode, er as JsonDocs, et as CompilerSystemRemoveFileResults, f as WorkerMsgHandler, fn as PrerenderConfig, fr as JsonDocsTag, ft as CustomElementsExportBehaviorOptions, g as BuildLog, gn as PrerenderStartOptions, gr as StyleDoc, gt as Diagnostic, h as BuildEvents, hn as PrerenderResults, hr as JsonDocsValue, ht as DevServerEditor, i as ComponentCompilerTypeReferences, in as OutputTargetSsrWasm, ir as JsonDocsEvent, it as CompilerWatcher, j as CompilerEventBuildFinish, jn as StencilDocsConfig, jt as Logger, k as CompilerBuildStart, kn as StencilConfig, kt as LoadConfigResults, ln as PageReloadStrategy, lr as JsonDocsProp, lt as CopyTask, m as BuildEmitEvents, mn as PrerenderOptions, mr as JsonDocsUsage, mt as DevServerConfig, n as CompilerWorkerContext, nn as OutputTargetLoaderBundle, nr as JsonDocsCustomState, nt as CompilerSystemRenamedPath, o as LazyBundlesRuntimeData, on as OutputTargetStats, or as JsonDocsMethod, ot as ConfigBundle, p as AutoprefixerOptions, pn as PrerenderHydrateOptions, pr as JsonDocsTypeLibrary, pt as DevServer, q as CompilerRequestResponse, qt as OutputTargetCustom, r as ComponentCompilerMeta, rn as OutputTargetSsr, rr as JsonDocsDependencyGraph, rt as CompilerSystemWriteFileResults, s as PackageJsonData, sn as OutputTargetTypes, sr as JsonDocsMethodReturn, st as ConfigCompat, tn as OutputTargetGlobalStyle, tr as JsonDocsComponent, tt as CompilerSystemRenameResults, un as ParsedPath, ur as JsonDocsSlot, ut as Credentials, v as BuildOnEventRemove, vn as ResolveModuleIdResults, vt as FsWatchResults, w as CliInitOptions, wn as ServiceWorkerConfig, wt as HydratedFlag, x as BuildOverrides, xn as RobotsTxtResults, xt as HotModuleReplacement, y as BuildOnEvents, yn as ResolveModuleOptions, yt as HistoryApiFallback, z as CompilerEventFileUpdate, zn as ValidatedOutputTargetWww, zt as OptimizeJsOutput } from "../index-Cw1NW9FW.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-2EypBn_Y.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-HKfDhPR3.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 { $i as HOST_FLAGS, $r as isOutputTargetDocsCustom, Ai as isRolldownError, Ar as isTsFile, Bi as COPY, Br as FilterComponentsResult, Ci as escapeHtml, Cr as createJsVarName, Di as loadTypeScriptDiagnostic, Dr as isDtsFile, Ei as augmentDiagnosticWithNode, Er as hasDependency, Fi as ASSETS, Fr as getInlineSourceMappingUrlLinker, Gi as DOCS_CUSTOM, Gr as getComponentsFromModules, Hi as DEFAULT_STYLE_MODE, Hr as filterExcludedComponents, Ii as CMP_FLAGS, Ir as getSourceMappingUrlForEndOfFile, Ji as DOCS_README, Jr as isOutputTargetCopy, Ki as DOCS_CUSTOM_ELEMENTS_MANIFEST, Kr as isOutputTargetAssets, Li as COLLECTION, Lr as getSourceMappingUrlLinker, Mi as formatComponentRuntimeMeta, Mr as parsePackageJson, Ni as formatLazyBundleRuntimeMeta, Nr as readOnlyArrayHasStringMember, Oi as loadTypeScriptDiagnostics, Or as isJsFile, Pi as stringifyRuntimeData, Pr as readPackageJson, Qi as GLOBAL_STYLE, Qr as isOutputTargetDocsAgentSkill, Ri as COLLECTION_APP_DATA_FILE_NAME, Rr as rolldownToStencilSourceMap, Si as shouldIgnoreError, Sr as addDocBlock, Ti as splitLineBreaks, Tr as getTextDocs, Ui as DIST_LAZY, Ur as getComponentsDtsSrcFilePath, Vi as CUSTOM, Vr as filterActiveTargets, Wi as DOCS_AGENT_SKILL, Wr as getComponentsDtsTypesFilePath, Xi as EVENT_FLAGS, Xr as isOutputTargetDistLazy, Yi as DOCS_VSCODE, Yr as isOutputTargetCustom, Zi as GENERATED_DTS, Zr as isOutputTargetDocs, _i as buildJsonFileError, aa as SSR, ai as isOutputTargetLoaderBundle, bi as hasError, br as validateComponentTag, ca as STATS, ci as isOutputTargetStandalone, da as TYPES, di as isOutputTargetWww, ea as HTML_NS, ei as isOutputTargetDocsCustomElementsManifest, fa as VALID_CONFIG_OUTPUT_TARGETS, fi as isValidConfigOutputTarget, gi as buildError, ha as XLINK_NS, hi as TASK_CANCELED_MSG, ia as NODE_TYPES, ii as isOutputTargetGlobalStyle, ji as loadRolldownDiagnostics, jr as isTsxFile, ki as createOnWarnFn, kr as isJsxFile, la as STYLE_EXT, li as isOutputTargetStats, ma as WWW, mi as shouldExcludeComponent, na as LOADER_BUNDLE, ni as isOutputTargetDocsReadme, oa as SSR_WASM, oi as isOutputTargetSsr, pa as WATCH_FLAGS, pi as relativeImport, qi as DOCS_JSON, qr as isOutputTargetCollection, ra as MEMBER_FLAGS, ri as isOutputTargetDocsVscode, sa as STANDALONE, si as isOutputTargetSsrWasm, ta as LISTENER_FLAGS, ti as isOutputTargetDocsJson, ua as SVG_NS, ui as isOutputTargetTypes, vi as buildWarn, vr as ModeValidationError, wi as normalizeDiagnostics, wr as generatePreamble, xi as hasWarning, xr as ParsePackageJsonResult, yi as catchError, yr as validateComponentModes, zi as COLLECTION_MANIFEST_FILE_NAME, zr as result_d_exports } from "../../index-
|
|
1
|
+
import { $i as HOST_FLAGS, $r as isOutputTargetDocsCustom, Ai as isRolldownError, Ar as isTsFile, Bi as COPY, Br as FilterComponentsResult, Ci as escapeHtml, Cr as createJsVarName, Di as loadTypeScriptDiagnostic, Dr as isDtsFile, Ei as augmentDiagnosticWithNode, Er as hasDependency, Fi as ASSETS, Fr as getInlineSourceMappingUrlLinker, Gi as DOCS_CUSTOM, Gr as getComponentsFromModules, Hi as DEFAULT_STYLE_MODE, Hr as filterExcludedComponents, Ii as CMP_FLAGS, Ir as getSourceMappingUrlForEndOfFile, Ji as DOCS_README, Jr as isOutputTargetCopy, Ki as DOCS_CUSTOM_ELEMENTS_MANIFEST, Kr as isOutputTargetAssets, Li as COLLECTION, Lr as getSourceMappingUrlLinker, Mi as formatComponentRuntimeMeta, Mr as parsePackageJson, Ni as formatLazyBundleRuntimeMeta, Nr as readOnlyArrayHasStringMember, Oi as loadTypeScriptDiagnostics, Or as isJsFile, Pi as stringifyRuntimeData, Pr as readPackageJson, Qi as GLOBAL_STYLE, Qr as isOutputTargetDocsAgentSkill, Ri as COLLECTION_APP_DATA_FILE_NAME, Rr as rolldownToStencilSourceMap, Si as shouldIgnoreError, Sr as addDocBlock, Ti as splitLineBreaks, Tr as getTextDocs, Ui as DIST_LAZY, Ur as getComponentsDtsSrcFilePath, Vi as CUSTOM, Vr as filterActiveTargets, Wi as DOCS_AGENT_SKILL, Wr as getComponentsDtsTypesFilePath, Xi as EVENT_FLAGS, Xr as isOutputTargetDistLazy, Yi as DOCS_VSCODE, Yr as isOutputTargetCustom, Zi as GENERATED_DTS, Zr as isOutputTargetDocs, _i as buildJsonFileError, aa as SSR, ai as isOutputTargetLoaderBundle, bi as hasError, br as validateComponentTag, ca as STATS, ci as isOutputTargetStandalone, da as TYPES, di as isOutputTargetWww, ea as HTML_NS, ei as isOutputTargetDocsCustomElementsManifest, fa as VALID_CONFIG_OUTPUT_TARGETS, fi as isValidConfigOutputTarget, gi as buildError, ha as XLINK_NS, hi as TASK_CANCELED_MSG, ia as NODE_TYPES, ii as isOutputTargetGlobalStyle, ji as loadRolldownDiagnostics, jr as isTsxFile, ki as createOnWarnFn, kr as isJsxFile, la as STYLE_EXT, li as isOutputTargetStats, ma as WWW, mi as shouldExcludeComponent, na as LOADER_BUNDLE, ni as isOutputTargetDocsReadme, oa as SSR_WASM, oi as isOutputTargetSsr, pa as WATCH_FLAGS, pi as relativeImport, qi as DOCS_JSON, qr as isOutputTargetCollection, ra as MEMBER_FLAGS, ri as isOutputTargetDocsVscode, sa as STANDALONE, si as isOutputTargetSsrWasm, ta as LISTENER_FLAGS, ti as isOutputTargetDocsJson, ua as SVG_NS, ui as isOutputTargetTypes, vi as buildWarn, vr as ModeValidationError, wi as normalizeDiagnostics, wr as generatePreamble, xi as hasWarning, xr as ParsePackageJsonResult, yi as catchError, yr as validateComponentModes, zi as COLLECTION_MANIFEST_FILE_NAME, zr as result_d_exports } from "../../index-Cw1NW9FW.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-
|
|
2
|
+
import { S as HYDRATED_CSS } from "./client-CdFmjaQa.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-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-HKfDhPR3.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-beta.
|
|
465
|
-
const buildId = "
|
|
466
|
-
const vermoji = "
|
|
464
|
+
const version = "5.0.0-beta.11";
|
|
465
|
+
const buildId = "1789429964";
|
|
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.
|
|
@@ -6024,7 +6024,8 @@ const addTagTransform$2 = (compilerCtx, buildCtx) => {
|
|
|
6024
6024
|
const expression = node.expression;
|
|
6025
6025
|
if (ts.isPropertyAccessExpression(expression) && ((expression.name.text === "get" || expression.name.text === "define" || expression.name.text === "whenDefined") && ts.isIdentifier(expression.expression) && expression.expression.text === "customElements" || expression.name.text === "createElement" && ts.isIdentifier(expression.expression) && expression.expression.text === "document")) {
|
|
6026
6026
|
const [firstArg, ...restArgs] = node.arguments;
|
|
6027
|
-
|
|
6027
|
+
const alreadyTransformed = firstArg && ts.isCallExpression(firstArg) && ts.isIdentifier(firstArg.expression) && (firstArg.expression.text === "__stencil_transformTag" || firstArg.expression.text === "transformTag");
|
|
6028
|
+
if (firstArg && !alreadyTransformed) {
|
|
6028
6029
|
const newFirstArg = ts.factory.createCallExpression(ts.factory.createIdentifier(TRANSFORM_TAG), void 0, [firstArg]);
|
|
6029
6030
|
newNode = ts.factory.updateCallExpression(node, node.expression, node.typeArguments, [newFirstArg, ...restArgs]);
|
|
6030
6031
|
}
|
|
@@ -11230,10 +11231,13 @@ const MODE_RESOLUTION_CHAIN_DECLARATION = `modeResolutionChain = [];`;
|
|
|
11230
11231
|
const SSR_FACTORY_INTRO = `
|
|
11231
11232
|
//! let ${MODE_RESOLUTION_CHAIN_DECLARATION}
|
|
11232
11233
|
|
|
11233
|
-
// Capture native
|
|
11234
|
+
// Capture native at module scope (before globalThis can be shadowed inside the factory).
|
|
11235
|
+
|
|
11234
11236
|
// Used for the hydrate timeout timer to avoid being affected by constrainTimeouts.
|
|
11235
11237
|
var $nativeSetTimeout = (typeof globalThis !== 'undefined' ? globalThis : global).setTimeout;
|
|
11236
11238
|
var $nativeClearTimeout = (typeof globalThis !== 'undefined' ? globalThis : global).clearTimeout;
|
|
11239
|
+
// Used to abort in-flight fetch() calls and to call any user defined AbortControllers when ssr times out.
|
|
11240
|
+
var $stencilNativeAbortController = AbortController;
|
|
11237
11241
|
|
|
11238
11242
|
export function ssrFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
11239
11243
|
var globalThis = $stencilWindow;
|
|
@@ -11326,8 +11330,46 @@ export function ssrFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateR
|
|
|
11326
11330
|
|
|
11327
11331
|
var fetch, FetchError, Headers, Request, Response;
|
|
11328
11332
|
|
|
11333
|
+
// Aborted when the render times out or errors, so in-flight fetch() calls
|
|
11334
|
+
// made by component code stop holding the render's window/results alive
|
|
11335
|
+
// instead of running to completion against a torn-down window. See #6864.
|
|
11336
|
+
var $stencilAbortController = new $stencilNativeAbortController();
|
|
11337
|
+
|
|
11338
|
+
// Any AbortController a component creates itself is transparently wired to
|
|
11339
|
+
// cascade-abort when the render times out too, so component code using the
|
|
11340
|
+
// standard AbortController convention for its own cancellable work (axios,
|
|
11341
|
+
// aws-sdk v3, the mongodb driver, etc.) gets cancelled automatically.
|
|
11342
|
+
var AbortController = function () {
|
|
11343
|
+
var controller = new $stencilNativeAbortController();
|
|
11344
|
+
$stencilAbortController.signal.addEventListener(
|
|
11345
|
+
'abort',
|
|
11346
|
+
function () {
|
|
11347
|
+
controller.abort();
|
|
11348
|
+
},
|
|
11349
|
+
{ once: true },
|
|
11350
|
+
);
|
|
11351
|
+
return controller;
|
|
11352
|
+
};
|
|
11353
|
+
|
|
11354
|
+
function $stencilFetchSignal(callerSignal) {
|
|
11355
|
+
if (!callerSignal) {
|
|
11356
|
+
return $stencilAbortController.signal;
|
|
11357
|
+
}
|
|
11358
|
+
if (callerSignal.aborted || $stencilAbortController.signal.aborted) {
|
|
11359
|
+
return callerSignal.aborted ? callerSignal : $stencilAbortController.signal;
|
|
11360
|
+
}
|
|
11361
|
+
var merged = new $stencilNativeAbortController();
|
|
11362
|
+
var onAbort = function () { merged.abort(); };
|
|
11363
|
+
callerSignal.addEventListener('abort', onAbort, { once: true });
|
|
11364
|
+
$stencilAbortController.signal.addEventListener('abort', onAbort, { once: true });
|
|
11365
|
+
return merged.signal;
|
|
11366
|
+
}
|
|
11367
|
+
|
|
11329
11368
|
if (typeof $stencilWindow.fetch === 'function') {
|
|
11330
|
-
|
|
11369
|
+
var $stencilRawFetch = $stencilWindow.fetch;
|
|
11370
|
+
fetch = $stencilWindow.fetch = function(input, init) {
|
|
11371
|
+
return $stencilRawFetch(input, Object.assign({}, init, { signal: $stencilFetchSignal(init && init.signal) }));
|
|
11372
|
+
};
|
|
11331
11373
|
} else {
|
|
11332
11374
|
fetch = $stencilWindow.fetch = function() { throw new Error('fetch() is not implemented'); };
|
|
11333
11375
|
}
|
|
@@ -11363,7 +11405,7 @@ export function ssrFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateR
|
|
|
11363
11405
|
`;
|
|
11364
11406
|
const SSR_FACTORY_OUTRO = `
|
|
11365
11407
|
/*hydrateAppClosure end*/
|
|
11366
|
-
ssrApp(window, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve);
|
|
11408
|
+
ssrApp(window, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve, $stencilAbortController);
|
|
11367
11409
|
}
|
|
11368
11410
|
|
|
11369
11411
|
hydrateAppClosure($stencilWindow);
|
|
@@ -11637,6 +11679,40 @@ if (typeof globalThis !== "undefined") {
|
|
|
11637
11679
|
if (typeof globalThis.clearInterval !== "function") globalThis.clearInterval = function() {};
|
|
11638
11680
|
}
|
|
11639
11681
|
`;
|
|
11682
|
+
const SSR_WASM_ABORT_CONTROLLER_POLYFILL = `
|
|
11683
|
+
if (typeof globalThis !== "undefined" && typeof globalThis.AbortController !== "function") {
|
|
11684
|
+
function StencilPolyfillAbortSignal() {
|
|
11685
|
+
this.aborted = false;
|
|
11686
|
+
this.reason = undefined;
|
|
11687
|
+
this._listeners = [];
|
|
11688
|
+
}
|
|
11689
|
+
StencilPolyfillAbortSignal.prototype.addEventListener = function(type, listener, options) {
|
|
11690
|
+
if (type !== "abort" || typeof listener !== "function") return;
|
|
11691
|
+
this._listeners.push({ listener: listener, once: !!(options && options.once) });
|
|
11692
|
+
};
|
|
11693
|
+
StencilPolyfillAbortSignal.prototype.removeEventListener = function(type, listener) {
|
|
11694
|
+
if (type !== "abort") return;
|
|
11695
|
+
this._listeners = this._listeners.filter(function(entry) { return entry.listener !== listener; });
|
|
11696
|
+
};
|
|
11697
|
+
StencilPolyfillAbortSignal.prototype.dispatchEvent = function(event) {
|
|
11698
|
+
var signal = this;
|
|
11699
|
+
signal._listeners.slice().forEach(function(entry) { entry.listener.call(signal, event); });
|
|
11700
|
+
signal._listeners = signal._listeners.filter(function(entry) { return !entry.once; });
|
|
11701
|
+
return true;
|
|
11702
|
+
};
|
|
11703
|
+
function StencilPolyfillAbortController() {
|
|
11704
|
+
this.signal = new StencilPolyfillAbortSignal();
|
|
11705
|
+
}
|
|
11706
|
+
StencilPolyfillAbortController.prototype.abort = function(reason) {
|
|
11707
|
+
if (this.signal.aborted) return;
|
|
11708
|
+
this.signal.aborted = true;
|
|
11709
|
+
this.signal.reason = reason;
|
|
11710
|
+
this.signal.dispatchEvent({ type: "abort" });
|
|
11711
|
+
};
|
|
11712
|
+
globalThis.AbortController = StencilPolyfillAbortController;
|
|
11713
|
+
globalThis.AbortSignal = StencilPolyfillAbortSignal;
|
|
11714
|
+
}
|
|
11715
|
+
`;
|
|
11640
11716
|
const SSR_WASM_INTERFACE = `declare module "main" {
|
|
11641
11717
|
export function renderToString(): void;
|
|
11642
11718
|
export function setTagTransformer(): void;
|
|
@@ -11651,6 +11727,12 @@ module.exports = {
|
|
|
11651
11727
|
return;
|
|
11652
11728
|
}
|
|
11653
11729
|
var inp = JSON.parse(Host.inputString());
|
|
11730
|
+
// QuickJS-ng has no timers, so if hydration never settles on its own (a Promise
|
|
11731
|
+
// nothing will ever resolve), the call doesn't hang - it just runs out of scheduled
|
|
11732
|
+
// work and returns whatever was last written here. Write a diagnostic up front so
|
|
11733
|
+
// that's a real error instead of silence, then overwrite it once renderToString()
|
|
11734
|
+
// actually resolves.
|
|
11735
|
+
Host.outputString(JSON.stringify({ __error: 'renderToString did not complete - a component may be waiting on work that never resolves' }));
|
|
11654
11736
|
var result = await renderToString(inp.html, inp.options);
|
|
11655
11737
|
Host.outputString(JSON.stringify(result));
|
|
11656
11738
|
} catch(e) {
|
|
@@ -11707,7 +11789,7 @@ const generateSsrWasmApp = async (config, compilerCtx, buildCtx, outputTargets)
|
|
|
11707
11789
|
checks: { pluginTimings: config.logLevel === "debug" }
|
|
11708
11790
|
};
|
|
11709
11791
|
const rolldownOutput = await (await rolldown(rolldownOptions)).generate({
|
|
11710
|
-
banner: generatePreamble(config) + SSR_WASM_TIMER_POLYFILL,
|
|
11792
|
+
banner: generatePreamble(config) + SSR_WASM_TIMER_POLYFILL + SSR_WASM_ABORT_CONTROLLER_POLYFILL,
|
|
11711
11793
|
outro: SSR_WASM_OUTRO,
|
|
11712
11794
|
format: "iife",
|
|
11713
11795
|
name: "StencilSsrWasm",
|
|
@@ -3732,6 +3732,10 @@ interface OutputTargetSsr extends OutputTargetBase {
|
|
|
3732
3732
|
*/
|
|
3733
3733
|
cjs?: boolean;
|
|
3734
3734
|
}
|
|
3735
|
+
/**
|
|
3736
|
+
* Compiles the SSR hydrate app to a WASM plugin (via `extism-js`/QuickJS-ng) that can run
|
|
3737
|
+
* outside of Node
|
|
3738
|
+
*/
|
|
3735
3739
|
interface OutputTargetSsrWasm extends OutputTargetBase {
|
|
3736
3740
|
type: 'ssr-wasm';
|
|
3737
3741
|
/** Output directory. @default 'dist/ssr-wasm' */
|
|
@@ -961,7 +961,7 @@ declare namespace LocalJSX {
|
|
|
961
961
|
interface IntrinsicElements {}
|
|
962
962
|
}
|
|
963
963
|
declare namespace JSXBase {
|
|
964
|
-
interface IntrinsicElements {
|
|
964
|
+
export interface IntrinsicElements {
|
|
965
965
|
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
966
966
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
967
967
|
abbr: JSXBase.HTMLAttributes;
|
|
@@ -1132,12 +1132,12 @@ declare namespace JSXBase {
|
|
|
1132
1132
|
use: JSXBase.SVGAttributes;
|
|
1133
1133
|
view: JSXBase.SVGAttributes;
|
|
1134
1134
|
}
|
|
1135
|
-
interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
1135
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
1136
1136
|
name?: string;
|
|
1137
1137
|
slot?: string;
|
|
1138
1138
|
onSlotchange?: (event: Event) => void;
|
|
1139
1139
|
}
|
|
1140
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1140
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1141
1141
|
download?: any;
|
|
1142
1142
|
href?: string;
|
|
1143
1143
|
hrefLang?: string;
|
|
@@ -1148,8 +1148,8 @@ declare namespace JSXBase {
|
|
|
1148
1148
|
target?: string;
|
|
1149
1149
|
referrerPolicy?: ReferrerPolicy;
|
|
1150
1150
|
}
|
|
1151
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
|
1152
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1151
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
|
1152
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1153
1153
|
alt?: string;
|
|
1154
1154
|
coords?: string;
|
|
1155
1155
|
download?: any;
|
|
@@ -1161,14 +1161,14 @@ declare namespace JSXBase {
|
|
|
1161
1161
|
shape?: string;
|
|
1162
1162
|
target?: string;
|
|
1163
1163
|
}
|
|
1164
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1164
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1165
|
href?: string;
|
|
1166
1166
|
target?: string;
|
|
1167
1167
|
}
|
|
1168
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1168
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1169
1169
|
cite?: string;
|
|
1170
1170
|
}
|
|
1171
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1171
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1172
1172
|
disabled?: boolean;
|
|
1173
1173
|
form?: string;
|
|
1174
1174
|
formAction?: string;
|
|
@@ -1191,45 +1191,45 @@ declare namespace JSXBase {
|
|
|
1191
1191
|
commandFor?: string;
|
|
1192
1192
|
commandfor?: string;
|
|
1193
1193
|
}
|
|
1194
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1194
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1195
1195
|
height?: number | string;
|
|
1196
1196
|
width?: number | string;
|
|
1197
1197
|
}
|
|
1198
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1198
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1199
1199
|
span?: number;
|
|
1200
1200
|
}
|
|
1201
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1201
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1202
1202
|
span?: number;
|
|
1203
1203
|
}
|
|
1204
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1204
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1205
1205
|
open?: boolean;
|
|
1206
1206
|
name?: string;
|
|
1207
1207
|
onToggle?: (event: ToggleEvent) => void;
|
|
1208
1208
|
}
|
|
1209
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1209
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1210
1210
|
cite?: string;
|
|
1211
1211
|
dateTime?: string;
|
|
1212
1212
|
datetime?: string;
|
|
1213
1213
|
}
|
|
1214
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1214
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1215
1215
|
onCancel?: (event: Event) => void;
|
|
1216
1216
|
onClose?: (event: Event) => void;
|
|
1217
1217
|
open?: boolean;
|
|
1218
1218
|
returnValue?: string;
|
|
1219
1219
|
closedby?: 'any' | 'closerequest' | 'none';
|
|
1220
1220
|
}
|
|
1221
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1221
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1222
1222
|
height?: number | string;
|
|
1223
1223
|
src?: string;
|
|
1224
1224
|
type?: string;
|
|
1225
1225
|
width?: number | string;
|
|
1226
1226
|
}
|
|
1227
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1227
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1228
1228
|
disabled?: boolean;
|
|
1229
1229
|
form?: string;
|
|
1230
1230
|
name?: string;
|
|
1231
1231
|
}
|
|
1232
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1232
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1233
1233
|
acceptCharset?: string;
|
|
1234
1234
|
acceptcharset?: string;
|
|
1235
1235
|
action?: string;
|
|
@@ -1243,10 +1243,10 @@ declare namespace JSXBase {
|
|
|
1243
1243
|
novalidate?: boolean | string;
|
|
1244
1244
|
target?: string;
|
|
1245
1245
|
}
|
|
1246
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1246
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1247
1247
|
manifest?: string;
|
|
1248
1248
|
}
|
|
1249
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1249
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1250
1250
|
allow?: string;
|
|
1251
1251
|
allowFullScreen?: boolean;
|
|
1252
1252
|
allowfullScreen?: string | boolean;
|
|
@@ -1273,7 +1273,7 @@ declare namespace JSXBase {
|
|
|
1273
1273
|
srcdoc?: string;
|
|
1274
1274
|
width?: number | string;
|
|
1275
1275
|
}
|
|
1276
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1276
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1277
1277
|
alt?: string;
|
|
1278
1278
|
crossOrigin?: string;
|
|
1279
1279
|
crossorigin?: string;
|
|
@@ -1292,12 +1292,12 @@ declare namespace JSXBase {
|
|
|
1292
1292
|
usemap?: string;
|
|
1293
1293
|
width?: number | string;
|
|
1294
1294
|
}
|
|
1295
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1295
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1296
1296
|
cite?: string;
|
|
1297
1297
|
dateTime?: string;
|
|
1298
1298
|
datetime?: string;
|
|
1299
1299
|
}
|
|
1300
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1300
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1301
1301
|
accept?: string;
|
|
1302
1302
|
allowdirs?: boolean;
|
|
1303
1303
|
alt?: string;
|
|
@@ -1360,7 +1360,7 @@ declare namespace JSXBase {
|
|
|
1360
1360
|
popoverTargetElement?: globalThis.Element | null;
|
|
1361
1361
|
popoverTarget?: string;
|
|
1362
1362
|
}
|
|
1363
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1363
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1364
1364
|
challenge?: string;
|
|
1365
1365
|
disabled?: boolean;
|
|
1366
1366
|
form?: string;
|
|
@@ -1370,14 +1370,14 @@ declare namespace JSXBase {
|
|
|
1370
1370
|
keyparams?: string;
|
|
1371
1371
|
name?: string;
|
|
1372
1372
|
}
|
|
1373
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1373
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1374
1374
|
form?: string;
|
|
1375
1375
|
htmlFor?: string;
|
|
1376
1376
|
}
|
|
1377
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1377
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1378
1378
|
value?: string | string[] | number;
|
|
1379
1379
|
}
|
|
1380
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1380
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1381
1381
|
as?: string;
|
|
1382
1382
|
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1383
1383
|
fetchpriority?: 'high' | 'low' | 'auto';
|
|
@@ -1391,13 +1391,13 @@ declare namespace JSXBase {
|
|
|
1391
1391
|
sizes?: string;
|
|
1392
1392
|
type?: string;
|
|
1393
1393
|
}
|
|
1394
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1394
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1395
1395
|
name?: string;
|
|
1396
1396
|
}
|
|
1397
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1397
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1398
1398
|
type?: string;
|
|
1399
1399
|
}
|
|
1400
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1400
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1401
1401
|
autoPlay?: boolean;
|
|
1402
1402
|
autoplay?: boolean | string;
|
|
1403
1403
|
controls?: boolean;
|
|
@@ -1437,7 +1437,7 @@ declare namespace JSXBase {
|
|
|
1437
1437
|
onVolumeChange?: (event: Event) => void;
|
|
1438
1438
|
onWaiting?: (event: Event) => void;
|
|
1439
1439
|
}
|
|
1440
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1440
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1441
1441
|
charSet?: string;
|
|
1442
1442
|
charset?: string;
|
|
1443
1443
|
content?: string;
|
|
@@ -1445,7 +1445,7 @@ declare namespace JSXBase {
|
|
|
1445
1445
|
httpequiv?: string;
|
|
1446
1446
|
name?: string;
|
|
1447
1447
|
}
|
|
1448
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1448
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1449
1449
|
form?: string;
|
|
1450
1450
|
high?: number;
|
|
1451
1451
|
low?: number;
|
|
@@ -1454,10 +1454,10 @@ declare namespace JSXBase {
|
|
|
1454
1454
|
optimum?: number;
|
|
1455
1455
|
value?: string | string[] | number;
|
|
1456
1456
|
}
|
|
1457
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1457
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1458
1458
|
cite?: string;
|
|
1459
1459
|
}
|
|
1460
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1460
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1461
1461
|
classID?: string;
|
|
1462
1462
|
classid?: string;
|
|
1463
1463
|
data?: string;
|
|
@@ -1470,34 +1470,34 @@ declare namespace JSXBase {
|
|
|
1470
1470
|
width?: number | string;
|
|
1471
1471
|
wmode?: string;
|
|
1472
1472
|
}
|
|
1473
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1473
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1474
1474
|
reversed?: boolean;
|
|
1475
1475
|
start?: number;
|
|
1476
1476
|
}
|
|
1477
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1477
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1478
1478
|
disabled?: boolean;
|
|
1479
1479
|
label?: string;
|
|
1480
1480
|
}
|
|
1481
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1481
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1482
1482
|
disabled?: boolean;
|
|
1483
1483
|
label?: string;
|
|
1484
1484
|
selected?: boolean;
|
|
1485
1485
|
value?: string | string[] | number;
|
|
1486
1486
|
}
|
|
1487
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1487
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1488
1488
|
form?: string;
|
|
1489
1489
|
htmlFor?: string;
|
|
1490
1490
|
name?: string;
|
|
1491
1491
|
}
|
|
1492
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1492
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1493
1493
|
name?: string;
|
|
1494
1494
|
value?: string | string[] | number;
|
|
1495
1495
|
}
|
|
1496
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1496
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1497
1497
|
max?: number | string;
|
|
1498
1498
|
value?: string | string[] | number;
|
|
1499
1499
|
}
|
|
1500
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1500
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1501
1501
|
async?: boolean;
|
|
1502
1502
|
charSet?: string;
|
|
1503
1503
|
charset?: string;
|
|
@@ -1512,7 +1512,7 @@ declare namespace JSXBase {
|
|
|
1512
1512
|
src?: string;
|
|
1513
1513
|
type?: string;
|
|
1514
1514
|
}
|
|
1515
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1515
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1516
1516
|
disabled?: boolean;
|
|
1517
1517
|
form?: string;
|
|
1518
1518
|
multiple?: boolean;
|
|
@@ -1522,7 +1522,7 @@ declare namespace JSXBase {
|
|
|
1522
1522
|
autoComplete?: string;
|
|
1523
1523
|
autocomplete?: string;
|
|
1524
1524
|
}
|
|
1525
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1525
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1526
1526
|
height?: number;
|
|
1527
1527
|
media?: string;
|
|
1528
1528
|
sizes?: string;
|
|
@@ -1531,20 +1531,20 @@ declare namespace JSXBase {
|
|
|
1531
1531
|
type?: string;
|
|
1532
1532
|
width?: number;
|
|
1533
1533
|
}
|
|
1534
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1534
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1535
1535
|
media?: string;
|
|
1536
1536
|
nonce?: string;
|
|
1537
1537
|
scoped?: boolean;
|
|
1538
1538
|
type?: string;
|
|
1539
1539
|
}
|
|
1540
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1540
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1541
1541
|
cellPadding?: number | string;
|
|
1542
1542
|
cellpadding?: number | string;
|
|
1543
1543
|
cellSpacing?: number | string;
|
|
1544
1544
|
cellspacing?: number | string;
|
|
1545
1545
|
summary?: string;
|
|
1546
1546
|
}
|
|
1547
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1547
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1548
1548
|
autoComplete?: string;
|
|
1549
1549
|
autocomplete?: string;
|
|
1550
1550
|
cols?: number;
|
|
@@ -1565,12 +1565,12 @@ declare namespace JSXBase {
|
|
|
1565
1565
|
value?: string | string[] | number;
|
|
1566
1566
|
wrap?: string;
|
|
1567
1567
|
}
|
|
1568
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1568
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1569
1569
|
colSpan?: number;
|
|
1570
1570
|
headers?: string;
|
|
1571
1571
|
rowSpan?: number;
|
|
1572
1572
|
}
|
|
1573
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1573
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1574
1574
|
abbr?: string;
|
|
1575
1575
|
colSpan?: number;
|
|
1576
1576
|
headers?: string;
|
|
@@ -1578,10 +1578,10 @@ declare namespace JSXBase {
|
|
|
1578
1578
|
rowspan?: number | string;
|
|
1579
1579
|
scope?: string;
|
|
1580
1580
|
}
|
|
1581
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1581
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1582
1582
|
dateTime?: string;
|
|
1583
1583
|
}
|
|
1584
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1584
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1585
1585
|
default?: boolean;
|
|
1586
1586
|
kind?: string;
|
|
1587
1587
|
label?: string;
|
|
@@ -1589,14 +1589,14 @@ declare namespace JSXBase {
|
|
|
1589
1589
|
srcLang?: string;
|
|
1590
1590
|
srclang?: string;
|
|
1591
1591
|
}
|
|
1592
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1592
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1593
1593
|
height?: number | string;
|
|
1594
1594
|
playsInline?: boolean;
|
|
1595
1595
|
playsinline?: boolean | string;
|
|
1596
1596
|
poster?: string;
|
|
1597
1597
|
width?: number | string;
|
|
1598
1598
|
}
|
|
1599
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1599
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1600
1600
|
innerHTML?: string;
|
|
1601
1601
|
accessKey?: string;
|
|
1602
1602
|
autoFocus?: boolean;
|
|
@@ -1662,7 +1662,7 @@ declare namespace JSXBase {
|
|
|
1662
1662
|
security?: string;
|
|
1663
1663
|
unselectable?: boolean;
|
|
1664
1664
|
}
|
|
1665
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1665
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1666
1666
|
class?: string | {
|
|
1667
1667
|
[className: string]: boolean;
|
|
1668
1668
|
} | SignalRef<string>;
|
|
@@ -1924,13 +1924,15 @@ declare namespace JSXBase {
|
|
|
1924
1924
|
zoomAndPan?: string;
|
|
1925
1925
|
}
|
|
1926
1926
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1927
|
-
interface ToggleEvent extends Event {
|
|
1927
|
+
export interface ToggleEvent extends Event {
|
|
1928
1928
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1929
1929
|
readonly newState: string;
|
|
1930
1930
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1931
1931
|
readonly oldState: string;
|
|
1932
1932
|
}
|
|
1933
|
-
|
|
1933
|
+
type AriaIDLPropertyName = { [K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never; }[keyof ARIAMixin];
|
|
1934
|
+
type JSXAriaProperties = { [K in AriaIDLPropertyName]?: string | boolean | undefined; };
|
|
1935
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1934
1936
|
slot?: string;
|
|
1935
1937
|
part?: string;
|
|
1936
1938
|
exportparts?: string;
|
|
@@ -2060,8 +2062,8 @@ declare namespace JSXBase {
|
|
|
2060
2062
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
2061
2063
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
2062
2064
|
[key: `aria-${string}`]: string | boolean | undefined;
|
|
2063
|
-
[key: `aria${string}`]: string | boolean | undefined;
|
|
2064
2065
|
}
|
|
2066
|
+
export {};
|
|
2065
2067
|
}
|
|
2066
2068
|
interface JSXAttributes<T = globalThis.Element> {
|
|
2067
2069
|
key?: string | number;
|