@stencil/core 5.0.0-rc.10 → 5.0.0-rc.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.
@@ -1,4 +1,4 @@
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-pTCZhNi0.mjs";
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-k8xQHE77.mjs";
2
2
  import * as SignalsCore from "@preact/signals-core";
3
3
  //#region src/app-data/index.ts
4
4
  /**
@@ -1840,6 +1840,17 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
1840
1840
  if (ancestorComponent["s-pc"]) ancestorComponent["s-pc"].push(ensureFirstConnectPromise(hostRef));
1841
1841
  }
1842
1842
  };
1843
+ /**
1844
+ * Release the ancestor waiting on this component's update (registered by {@link attachToAncestor}).
1845
+ *
1846
+ * @param hostRef the component's host reference
1847
+ */
1848
+ const resolveAncestorWait = (hostRef) => {
1849
+ if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
1850
+ hostRef.$onRenderResolve$();
1851
+ hostRef.$onRenderResolve$ = void 0;
1852
+ }
1853
+ };
1843
1854
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1844
1855
  if (BUILD.updatable) hostRef.$flags$ |= HOST_FLAGS.isQueuedForUpdate;
1845
1856
  if (BUILD.asyncLoading && hostRef.$flags$ & HOST_FLAGS.isWaitingForChildren) {
@@ -1905,8 +1916,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1905
1916
  if (BUILD.updatable && hostRef.$queuedPropChanges$) {
1906
1917
  const changes = hostRef.$queuedPropChanges$;
1907
1918
  hostRef.$queuedPropChanges$ = void 0;
1908
- if (safeCall(instance, "componentShouldUpdate", changes, elm) === false) {
1919
+ if (safeCall(instance, "componentShouldUpdate", changes, elm) === false && !(hostRef.$flags$ & HOST_FLAGS.isUpdateForced)) {
1909
1920
  hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
1921
+ resolveAncestorWait(hostRef);
1910
1922
  return;
1911
1923
  }
1912
1924
  }
@@ -2032,7 +2044,10 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
2032
2044
  * method, so we can call the method immediately. If not, check before calling it.
2033
2045
  */
2034
2046
  instance = allRenderFn ? instance.render() : instance.render && instance.render();
2035
- if (updatable) hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
2047
+ if (updatable) {
2048
+ hostRef.$flags$ &= ~(HOST_FLAGS.isQueuedForUpdate | HOST_FLAGS.isUpdateForced);
2049
+ hostRef.$queuedPropChanges$ = void 0;
2050
+ }
2036
2051
  if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
2037
2052
  if (BUILD.hasRenderFn || BUILD.reflect) {
2038
2053
  if (BUILD.vdomRender || BUILD.reflect) {
@@ -2083,10 +2098,7 @@ const postUpdateComponent = (hostRef) => {
2083
2098
  }
2084
2099
  if (BUILD.method && BUILD.lazyLoad) hostRef.$onInstanceResolve$(elm);
2085
2100
  if (BUILD.asyncLoading) {
2086
- if (hostRef.$onRenderResolve$) {
2087
- hostRef.$onRenderResolve$();
2088
- hostRef.$onRenderResolve$ = void 0;
2089
- }
2101
+ resolveAncestorWait(hostRef);
2090
2102
  if (hostRef.$flags$ & HOST_FLAGS.needsRerender) nextTick(() => scheduleUpdate(hostRef, false));
2091
2103
  hostRef.$flags$ &= ~(HOST_FLAGS.isWaitingForChildren | HOST_FLAGS.needsRerender);
2092
2104
  }
@@ -2095,7 +2107,10 @@ const forceUpdate = (ref) => {
2095
2107
  if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
2096
2108
  const hostRef = getHostRef(ref);
2097
2109
  const isConnected = hostRef?.$hostElement$?.isConnected;
2098
- if (isConnected && (hostRef.$flags$ & (HOST_FLAGS.hasRendered | HOST_FLAGS.isQueuedForUpdate)) === HOST_FLAGS.hasRendered) scheduleUpdate(hostRef, false);
2110
+ if (isConnected && hostRef.$flags$ & HOST_FLAGS.hasRendered) {
2111
+ hostRef.$flags$ |= HOST_FLAGS.isUpdateForced;
2112
+ if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
2113
+ }
2099
2114
  return isConnected;
2100
2115
  }
2101
2116
  return false;
@@ -1151,6 +1151,11 @@ interface ComponentCompilerFeatures {
1151
1151
  * - any lifecycle methods, including `render()`
1152
1152
  */
1153
1153
  isPlain: boolean;
1154
+ /**
1155
+ * `true` for a CSS-only component: a `@component`-marked stylesheet with no backing JS
1156
+ * class. The element is never defined/upgraded, so it only has the attributes its CSS reads.
1157
+ */
1158
+ isCssOnly: boolean;
1154
1159
  /**
1155
1160
  * A collection of tag names of web components that a component references in its JSX/h() function
1156
1161
  */
@@ -1845,7 +1845,7 @@ const validateComponentTag = (tag) => {
1845
1845
  };
1846
1846
  //#endregion
1847
1847
  //#region src/version.ts
1848
- const version = "5.0.0-rc.10";
1848
+ const version = "5.0.0-rc.11";
1849
1849
  //#endregion
1850
1850
  //#region src/compiler/events.ts
1851
1851
  const buildEvents = () => {
@@ -15726,6 +15726,7 @@ const parseStaticComponentMeta = (compilerCtx, typeChecker, cmpNode, moduleFile,
15726
15726
  hasSignalsImport: false,
15727
15727
  hasWatchCallback: false,
15728
15728
  isPlain: false,
15729
+ isCssOnly: false,
15729
15730
  htmlAttrNames: [],
15730
15731
  htmlTagNames: [],
15731
15732
  htmlParts: [],
@@ -16946,8 +16947,8 @@ const generateComponentTypes = (cmp, typeImportData, areTypesInternal, signalBac
16946
16947
  ...eventAttributes,
16947
16948
  ...formAssociatedAttrs
16948
16949
  ], true, areTypesInternal);
16949
- const elementInterface = hasMethodConflicts ? generateElementInterfaceWithConflictResolution(htmlElementName, tagNameAsPascal, conflictingMethods, htmlElementEventListenerProperties, cmp.docs) : generateStandardElementInterface(htmlElementName, tagNameAsPascal, htmlElementEventListenerProperties, cmp.docs);
16950
- if (signalBacking && cmp.properties.length > 0) {
16950
+ const elementInterface = cmp.isCssOnly ? [addDocBlock(` interface ${htmlElementName} extends HTMLElement {`, cmp.docs, 4), ` }`] : hasMethodConflicts ? generateElementInterfaceWithConflictResolution(htmlElementName, tagNameAsPascal, conflictingMethods, htmlElementEventListenerProperties, cmp.docs) : generateStandardElementInterface(htmlElementName, tagNameAsPascal, htmlElementEventListenerProperties, cmp.docs);
16951
+ if (signalBacking && !cmp.isCssOnly && cmp.properties.length > 0) {
16951
16952
  const signalsPropNames = (areTypesInternal ? cmp.properties : cmp.properties.filter((p) => !p.internal)).map((p) => `"${p.name}"`).join(" | ");
16952
16953
  if (signalsPropNames) elementInterface.splice(-1, 0, ` readonly [STENCIL_SIGNALS_SYMBOL]?: ReadonlyMap<${signalsPropNames}, ReadonlySignal<unknown>>;`);
16953
16954
  }
@@ -1,4 +1,4 @@
1
- import { $ as CompilerFsStats, $n as WatcherCloseResults, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdOptions, Ar as FsWriteResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrDocumentOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsSlot, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsUsage, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsTypeLibrary, Et as FsWatchResults, F as Compiler, Fn as RolldownConfig, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as SystemDetails, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as SerializeDocumentOptions, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileOptions, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TransformOptions, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as ServiceWorkerConfig, Lt as LoadConfigInit, M as CliInitOptions, Mn as ResolveModuleOptions, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtOpts, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as JsonDocsValue, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RobotsTxtResults, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as ValidatedOutputTargetWww, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpOpts, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsProp, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTag, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDevServerConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as SsrFactoryOptions, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as StencilDocsConfig, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as UnvalidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as TranspileResults, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedConfig, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsEvent, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsMethodReturn, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerMainController, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocMethodParameter, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsDependencyGraph, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsCustomState, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleIdResults, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveImportContext, kr as StyleDoc, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsComponent, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocs, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOnlyResults, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tr as WorkerOptions, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ur as UserBuildConditionals, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsListener, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsStyle, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsPart, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethod, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SitemapXmpResults, zt as LogLevel } from "../index-BxnfbT3a.mjs";
1
+ import { $ as CompilerFsStats, $n as WatcherCloseResults, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdOptions, Ar as FsWriteResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrDocumentOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsSlot, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsUsage, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsTypeLibrary, Et as FsWatchResults, F as Compiler, Fn as RolldownConfig, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as SystemDetails, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as SerializeDocumentOptions, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileOptions, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TransformOptions, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as ServiceWorkerConfig, Lt as LoadConfigInit, M as CliInitOptions, Mn as ResolveModuleOptions, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtOpts, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as JsonDocsValue, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RobotsTxtResults, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as ValidatedOutputTargetWww, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpOpts, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsProp, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTag, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDevServerConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as SsrFactoryOptions, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as StencilDocsConfig, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as UnvalidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as TranspileResults, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedConfig, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsEvent, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsMethodReturn, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerMainController, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocMethodParameter, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsDependencyGraph, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsCustomState, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleIdResults, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveImportContext, kr as StyleDoc, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsComponent, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocs, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOnlyResults, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tr as WorkerOptions, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ur as UserBuildConditionals, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsListener, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsStyle, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsPart, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethod, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SitemapXmpResults, zt as LogLevel } from "../index-BDAZsQzV.mjs";
2
2
  import ts from "typescript";
3
3
  import { Plugin as Plugin$1 } from "rolldown";
4
4
  //#region src/version.d.ts
@@ -1,3 +1,3 @@
1
- import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-ChKFuRry.mjs";
2
- import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-C59vQZNg.mjs";
1
+ import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-DlA2VsX7.mjs";
2
+ import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-BR2GYgzY.mjs";
3
3
  export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
@@ -1,4 +1,4 @@
1
- import { $i as COLLECTION, $r as rolldownToStencilSourceMap, Aa as WWW, Ai as shouldExcludeComponent, Bi as normalizeDiagnostics, Br as isDtsFile, Ca as STANDALONE, Ci as isOutputTargetSsrWasm, Da as TYPES, Di as isOutputTargetWww, Ea as SVG_NS, Ei as isOutputTargetTypes, Fi as catchError, Fr as addDocBlock, Gi as createOnWarnFn, Gr as parsePackageJson, Hi as augmentDiagnosticWithNode, Hr as isJsxFile, Ii as hasError, Ir as createJsVarName, Ji as formatComponentRuntimeMeta, Jr as getInlineSourceMappingUrlLinker, Ki as isRolldownError, Kr as readOnlyArrayHasStringMember, Li as hasWarning, Lr as generatePreamble, Mi as buildError, Mr as validateComponentModes, Ni as buildJsonFileError, Nr as validateComponentTag, Oa as VALID_CONFIG_OUTPUT_TARGETS, Oi as isValidConfigOutputTarget, Pi as buildWarn, Pr as ParsePackageJsonResult, Qi as CMP_FLAGS, Qr as relativizeSourceMap, Ri as shouldIgnoreError, Rr as getTextDocs, Sa as SSR_WASM, Si as isOutputTargetSsr, Ta as STYLE_EXT, Ti as isOutputTargetStats, Ui as loadTypeScriptDiagnostic, Ur as isTsFile, Vi as splitLineBreaks, Vr as isJsFile, Wi as loadTypeScriptDiagnostics, Wr as isTsxFile, Xi as stringifyRuntimeData, Xr as getSourceMappingUrlForEndOfFile, Yi as formatLazyBundleRuntimeMeta, Yr as getRolldownSourceMapOptions, Zi as ASSETS, Zr as getSourceMappingUrlLinker, _a as LISTENER_FLAGS, _i as isOutputTargetDocsReadme, aa as DIST_LAZY, ai as getComponentsDtsTypesFilePath, ba as NODE_TYPES, bi as isOutputTargetLoaderBundle, ca as DOCS_CUSTOM_ELEMENTS_MANIFEST, ci as isOutputTargetCollection, da as DOCS_VSCODE, di as isOutputTargetDistLazy, ea as COLLECTION_APP_DATA_FILE_NAME, ei as result_d_exports, fa as EVENT_FLAGS, fi as isOutputTargetDocs, ga as HTML_NS, gi as isOutputTargetDocsJson, ha as HOST_FLAGS, hi as isOutputTargetDocsCustomElementsManifest, ia as DEFAULT_STYLE_MODE, ii as getComponentsDtsSrcFilePath, ja as XLINK_NS, ji as TASK_CANCELED_MSG, jr as ModeValidationError, ka as WATCH_FLAGS, ki as relativeImport, la as DOCS_JSON, li as isOutputTargetCopy, ma as GLOBAL_STYLE, mi as isOutputTargetDocsCustom, na as COPY, ni as filterActiveTargets, oa as DOCS_AGENT_SKILL, oi as getComponentsFromModules, pa as GENERATED_DTS, pi as isOutputTargetDocsAgentSkill, qi as loadRolldownDiagnostics, qr as readPackageJson, ra as CUSTOM, ri as filterExcludedComponents, sa as DOCS_CUSTOM, si as isOutputTargetAssets, ta as COLLECTION_MANIFEST_FILE_NAME, ti as FilterComponentsResult, ua as DOCS_README, ui as isOutputTargetCustom, va as LOADER_BUNDLE, vi as isOutputTargetDocsVscode, wa as STATS, wi as isOutputTargetStandalone, xa as SSR, xi as isOutputTargetServerRenderer, ya as MEMBER_FLAGS, yi as isOutputTargetGlobalStyle, zi as escapeHtml, zr as hasDependency } from "../../index-BxnfbT3a.mjs";
1
+ import { $i as COLLECTION, $r as rolldownToStencilSourceMap, Aa as WWW, Ai as shouldExcludeComponent, Bi as normalizeDiagnostics, Br as isDtsFile, Ca as STANDALONE, Ci as isOutputTargetSsrWasm, Da as TYPES, Di as isOutputTargetWww, Ea as SVG_NS, Ei as isOutputTargetTypes, Fi as catchError, Fr as addDocBlock, Gi as createOnWarnFn, Gr as parsePackageJson, Hi as augmentDiagnosticWithNode, Hr as isJsxFile, Ii as hasError, Ir as createJsVarName, Ji as formatComponentRuntimeMeta, Jr as getInlineSourceMappingUrlLinker, Ki as isRolldownError, Kr as readOnlyArrayHasStringMember, Li as hasWarning, Lr as generatePreamble, Mi as buildError, Mr as validateComponentModes, Ni as buildJsonFileError, Nr as validateComponentTag, Oa as VALID_CONFIG_OUTPUT_TARGETS, Oi as isValidConfigOutputTarget, Pi as buildWarn, Pr as ParsePackageJsonResult, Qi as CMP_FLAGS, Qr as relativizeSourceMap, Ri as shouldIgnoreError, Rr as getTextDocs, Sa as SSR_WASM, Si as isOutputTargetSsr, Ta as STYLE_EXT, Ti as isOutputTargetStats, Ui as loadTypeScriptDiagnostic, Ur as isTsFile, Vi as splitLineBreaks, Vr as isJsFile, Wi as loadTypeScriptDiagnostics, Wr as isTsxFile, Xi as stringifyRuntimeData, Xr as getSourceMappingUrlForEndOfFile, Yi as formatLazyBundleRuntimeMeta, Yr as getRolldownSourceMapOptions, Zi as ASSETS, Zr as getSourceMappingUrlLinker, _a as LISTENER_FLAGS, _i as isOutputTargetDocsReadme, aa as DIST_LAZY, ai as getComponentsDtsTypesFilePath, ba as NODE_TYPES, bi as isOutputTargetLoaderBundle, ca as DOCS_CUSTOM_ELEMENTS_MANIFEST, ci as isOutputTargetCollection, da as DOCS_VSCODE, di as isOutputTargetDistLazy, ea as COLLECTION_APP_DATA_FILE_NAME, ei as result_d_exports, fa as EVENT_FLAGS, fi as isOutputTargetDocs, ga as HTML_NS, gi as isOutputTargetDocsJson, ha as HOST_FLAGS, hi as isOutputTargetDocsCustomElementsManifest, ia as DEFAULT_STYLE_MODE, ii as getComponentsDtsSrcFilePath, ja as XLINK_NS, ji as TASK_CANCELED_MSG, jr as ModeValidationError, ka as WATCH_FLAGS, ki as relativeImport, la as DOCS_JSON, li as isOutputTargetCopy, ma as GLOBAL_STYLE, mi as isOutputTargetDocsCustom, na as COPY, ni as filterActiveTargets, oa as DOCS_AGENT_SKILL, oi as getComponentsFromModules, pa as GENERATED_DTS, pi as isOutputTargetDocsAgentSkill, qi as loadRolldownDiagnostics, qr as readPackageJson, ra as CUSTOM, ri as filterExcludedComponents, sa as DOCS_CUSTOM, si as isOutputTargetAssets, ta as COLLECTION_MANIFEST_FILE_NAME, ti as FilterComponentsResult, ua as DOCS_README, ui as isOutputTargetCustom, va as LOADER_BUNDLE, vi as isOutputTargetDocsVscode, wa as STATS, wi as isOutputTargetStandalone, xa as SSR, xi as isOutputTargetServerRenderer, ya as MEMBER_FLAGS, yi as isOutputTargetGlobalStyle, zi as escapeHtml, zr as hasDependency } from "../../index-BDAZsQzV.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,4 +1,4 @@
1
- import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, B as HOST_FLAGS, C as CMP_FLAGS, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, F as DOCS_README, G as NODE_TYPES, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, K as SSR, L as EVENT_FLAGS, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as CUSTOM, 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, V as HTML_NS, W as MEMBER_FLAGS, X as STYLE_EXT, Y as STATS, Z as SVG_NS, _ as toCamelCase, a as isBoolean, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString, g as sortBy, h as pluck, i as fromEntries, j as DOCS_AGENT_SKILL, k as DEFAULT_STYLE_MODE, l as isIterable, m as noop, n as escapeWithPattern, nt as XLINK_NS, o as isComplexType, p as mergeIntoWith, q as SSR_WASM, r as flatOne, s as isDef, t as dashToPascalCase, tt as WWW, u as isNumber, v as toDashCase, w as COLLECTION, x as queryNonceMetaTagContent, y as toTitleCase, z as GLOBAL_STYLE } from "../../helpers-pTCZhNi0.mjs";
2
- import { C as isRootPath, D as byteSize, E as stringifyRuntimeData, O as escapeRegExpSpecialCharacters, S as splitLineBreaks, T as formatLazyBundleRuntimeMeta, _ as createOnWarnFn, a as getRolldownSourceMapOptions, b as escapeHtml, c as relativizeSourceMap, g as loadTypeScriptDiagnostics, h as loadTypeScriptDiagnostic, i as getInlineSourceMappingUrlLinker, l as rolldownToStencilSourceMap, m as augmentDiagnosticWithNode, n as validateComponentTag, o as getSourceMappingUrlForEndOfFile, p as result_exports, r as isRemoteUrl, s as getSourceMappingUrlLinker, t as validateComponentModes, v as isRolldownError, w as formatComponentRuntimeMeta, x as normalizeDiagnostics, y as loadRolldownDiagnostics } from "../../validation-C1mr0klL.mjs";
3
- import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join, V as relativeImport, W as normalize, X as TASK_CANCELED_MSG, Y as resolve, Z as buildError, _ as getComponentsDtsTypesFilePath, a as hasDependency, b as isOutputTargetCollection, c as isJsxFile, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, rt as shouldIgnoreError, s as isJsFile, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "../../util-CP6-333M.mjs";
1
+ import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, B as HOST_FLAGS, C as CMP_FLAGS, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, F as DOCS_README, G as NODE_TYPES, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, K as SSR, L as EVENT_FLAGS, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as CUSTOM, 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, V as HTML_NS, W as MEMBER_FLAGS, X as STYLE_EXT, Y as STATS, Z as SVG_NS, _ as toCamelCase, a as isBoolean, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString, g as sortBy, h as pluck, i as fromEntries, j as DOCS_AGENT_SKILL, k as DEFAULT_STYLE_MODE, l as isIterable, m as noop, n as escapeWithPattern, nt as XLINK_NS, o as isComplexType, p as mergeIntoWith, q as SSR_WASM, r as flatOne, s as isDef, t as dashToPascalCase, tt as WWW, u as isNumber, v as toDashCase, w as COLLECTION, x as queryNonceMetaTagContent, y as toTitleCase, z as GLOBAL_STYLE } from "../../helpers-k8xQHE77.mjs";
2
+ import { C as isRootPath, D as byteSize, E as stringifyRuntimeData, O as escapeRegExpSpecialCharacters, S as splitLineBreaks, T as formatLazyBundleRuntimeMeta, _ as createOnWarnFn, a as getRolldownSourceMapOptions, b as escapeHtml, c as relativizeSourceMap, g as loadTypeScriptDiagnostics, h as loadTypeScriptDiagnostic, i as getInlineSourceMappingUrlLinker, l as rolldownToStencilSourceMap, m as augmentDiagnosticWithNode, n as validateComponentTag, o as getSourceMappingUrlForEndOfFile, p as result_exports, r as isRemoteUrl, s as getSourceMappingUrlLinker, t as validateComponentModes, v as isRolldownError, w as formatComponentRuntimeMeta, x as normalizeDiagnostics, y as loadRolldownDiagnostics } from "../../validation-GfBzquhJ.mjs";
3
+ import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join, V as relativeImport, W as normalize, X as TASK_CANCELED_MSG, Y as resolve, Z as buildError, _ as getComponentsDtsTypesFilePath, a as hasDependency, b as isOutputTargetCollection, c as isJsxFile, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, rt as shouldIgnoreError, s as isJsFile, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "../../util-Cj2D3x_h.mjs";
4
4
  export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_AGENT_SKILL, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, NODE_TYPES, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getRolldownSourceMapOptions, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsAgentSkill, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetServerRenderer, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, relativizeSourceMap, resolve, result_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentModes, validateComponentTag };
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import { A as SSR_PROP_REF_PREFIX, D as HYDRATE_ID, E as HYDRATE_CHILD_ID, O as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, k as SSR_PROPS_REGISTRY_KEY, w as CLIENT_BUILD_FLAGS } from "./client-DkvdNuPu.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-pTCZhNi0.mjs";
4
- import { C as isRootPath, D as byteSize, E as stringifyRuntimeData, O as escapeRegExpSpecialCharacters, S as splitLineBreaks, _ as createOnWarnFn, a as getRolldownSourceMapOptions, c as relativizeSourceMap, d as map, f as ok, g as loadTypeScriptDiagnostics, h as loadTypeScriptDiagnostic, i as getInlineSourceMappingUrlLinker, l as rolldownToStencilSourceMap, m as augmentDiagnosticWithNode, n as validateComponentTag, o as getSourceMappingUrlForEndOfFile, r as isRemoteUrl, t as validateComponentModes, u as err, v as isRolldownError, w as formatComponentRuntimeMeta, x as normalizeDiagnostics, y as loadRolldownDiagnostics } from "./validation-C1mr0klL.mjs";
5
- import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative$1, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join$2, V as relativeImport, Y as resolve$2, Z as buildError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "./util-CP6-333M.mjs";
6
- import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-C59vQZNg.mjs";
2
+ import { A as SSR_PROP_REF_PREFIX, D as HYDRATE_ID, E as HYDRATE_CHILD_ID, O as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, k as SSR_PROPS_REGISTRY_KEY, w as CLIENT_BUILD_FLAGS } from "./client-QadqfKfL.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-k8xQHE77.mjs";
4
+ import { C as isRootPath, D as byteSize, E as stringifyRuntimeData, O as escapeRegExpSpecialCharacters, S as splitLineBreaks, _ as createOnWarnFn, a as getRolldownSourceMapOptions, c as relativizeSourceMap, d as map, f as ok, g as loadTypeScriptDiagnostics, h as loadTypeScriptDiagnostic, i as getInlineSourceMappingUrlLinker, l as rolldownToStencilSourceMap, m as augmentDiagnosticWithNode, n as validateComponentTag, o as getSourceMappingUrlForEndOfFile, r as isRemoteUrl, t as validateComponentModes, u as err, v as isRolldownError, w as formatComponentRuntimeMeta, x as normalizeDiagnostics, y as loadRolldownDiagnostics } from "./validation-GfBzquhJ.mjs";
5
+ import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative$1, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join$2, V as relativeImport, Y as resolve$2, Z as buildError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "./util-Cj2D3x_h.mjs";
6
+ import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-BR2GYgzY.mjs";
7
7
  import ts, { default as ts$1 } from "typescript";
8
8
  import { readFileSync } from "node:fs";
9
9
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
@@ -461,9 +461,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
461
461
  };
462
462
  //#endregion
463
463
  //#region src/version.ts
464
- const version = "5.0.0-rc.10";
465
- const buildId = "1795615384";
466
- const vermoji = "🚅";
464
+ const version = "5.0.0-rc.11";
465
+ const buildId = "1795624141";
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.
@@ -1459,6 +1459,7 @@ const createCssOnlyComponentMeta = (def) => ({
1459
1459
  internal: false,
1460
1460
  isCollectionDependency: false,
1461
1461
  isPlain: false,
1462
+ isCssOnly: true,
1462
1463
  isUpdateable: false,
1463
1464
  jsFilePath: "",
1464
1465
  listeners: [],
@@ -8179,9 +8180,9 @@ const generateCaseClause = (bundleId) => {
8179
8180
  const generateCaseClauseCjs = (bundleId) => {
8180
8181
  return `
8181
8182
  case '${bundleId}':
8182
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
8183
+ return Promise.resolve().then(function () { return require(
8183
8184
  /* webpackMode: "lazy" */
8184
- './${bundleId}.entry.js')); }).then(onLoad, onError);`;
8185
+ './${bundleId}.entry.js'); }).then(onLoad, onError);`;
8185
8186
  };
8186
8187
  const generateLazyEntryModule = async (config, compilerCtx, buildCtx, rolldownResult, outputTargetType, destinations, sourceTarget, shouldMinify, isBrowserBuild) => {
8187
8188
  const entryModule = buildCtx.entryModules.find((em) => em.entryKey === rolldownResult.entryKey);
@@ -11444,8 +11445,8 @@ const generateComponentTypes = (cmp, typeImportData, areTypesInternal, signalBac
11444
11445
  ...eventAttributes,
11445
11446
  ...formAssociatedAttrs
11446
11447
  ], true, areTypesInternal);
11447
- const elementInterface = hasMethodConflicts ? generateElementInterfaceWithConflictResolution(htmlElementName, tagNameAsPascal, conflictingMethods, htmlElementEventListenerProperties, cmp.docs) : generateStandardElementInterface(htmlElementName, tagNameAsPascal, htmlElementEventListenerProperties, cmp.docs);
11448
- if (signalBacking && cmp.properties.length > 0) {
11448
+ const elementInterface = cmp.isCssOnly ? [addDocBlock(` interface ${htmlElementName} extends HTMLElement {`, cmp.docs, 4), ` }`] : hasMethodConflicts ? generateElementInterfaceWithConflictResolution(htmlElementName, tagNameAsPascal, conflictingMethods, htmlElementEventListenerProperties, cmp.docs) : generateStandardElementInterface(htmlElementName, tagNameAsPascal, htmlElementEventListenerProperties, cmp.docs);
11449
+ if (signalBacking && !cmp.isCssOnly && cmp.properties.length > 0) {
11449
11450
  const signalsPropNames = (areTypesInternal ? cmp.properties : cmp.properties.filter((p) => !p.internal)).map((p) => `"${p.name}"`).join(" | ");
11450
11451
  if (signalsPropNames) elementInterface.splice(-1, 0, ` readonly [STENCIL_SIGNALS_SYMBOL]?: ReadonlyMap<${signalsPropNames}, ReadonlySignal<unknown>>;`);
11451
11452
  }
@@ -18969,6 +18970,7 @@ const parseStaticComponentMeta = (compilerCtx, typeChecker, cmpNode, moduleFile,
18969
18970
  hasSignalsImport: false,
18970
18971
  hasWatchCallback: false,
18971
18972
  isPlain: false,
18973
+ isCssOnly: false,
18972
18974
  htmlAttrNames: [],
18973
18975
  htmlTagNames: [],
18974
18976
  htmlParts: [],
@@ -1148,6 +1148,11 @@ interface ComponentCompilerFeatures {
1148
1148
  * - any lifecycle methods, including `render()`
1149
1149
  */
1150
1150
  isPlain: boolean;
1151
+ /**
1152
+ * `true` for a CSS-only component: a `@component`-marked stylesheet with no backing JS
1153
+ * class. The element is never defined/upgraded, so it only has the attributes its CSS reads.
1154
+ */
1155
+ isCssOnly: boolean;
1151
1156
  /**
1152
1157
  * A collection of tag names of web components that a component references in its JSX/h() function
1153
1158
  */
@@ -57,7 +57,11 @@ const HOST_FLAGS = {
57
57
  * coming from the runtime's own reflection aren't applied back to the prop.
58
58
  */
59
59
  isReflecting: 16384,
60
- devOnRender: 4096,
60
+ /**
61
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
62
+ */
63
+ isUpdateForced: 4096,
64
+ devOnRender: 32768,
61
65
  devOnDidLoad: 8192
62
66
  };
63
67
  const CF_scopedCssEncapsulation = 2;
@@ -63,6 +63,10 @@ declare const HOST_FLAGS: {
63
63
  * coming from the runtime's own reflection aren't applied back to the prop.
64
64
  */
65
65
  readonly isReflecting: number;
66
+ /**
67
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
68
+ */
69
+ readonly isUpdateForced: number;
66
70
  readonly devOnRender: number;
67
71
  readonly devOnDidLoad: number;
68
72
  };
@@ -5149,6 +5153,11 @@ interface ComponentCompilerFeatures {
5149
5153
  * - any lifecycle methods, including `render()`
5150
5154
  */
5151
5155
  isPlain: boolean;
5156
+ /**
5157
+ * `true` for a CSS-only component: a `@component`-marked stylesheet with no backing JS
5158
+ * class. The element is never defined/upgraded, so it only has the attributes its CSS reads.
5159
+ */
5160
+ isCssOnly: boolean;
5152
5161
  /**
5153
5162
  * A collection of tag names of web components that a component references in its JSX/h() function
5154
5163
  */
@@ -1,4 +1,4 @@
1
- import { cr as ResolutionHandler, dr as VNode, ir as FunctionalComponent, lr as TagTransformer, n as ChildType, or as RafCallback, p as HostElement, rr as ErrorHandler, ur as UserBuildConditionals, v as PropsType, y as RuntimeRef } from "./index-BxnfbT3a.mjs";
1
+ import { cr as ResolutionHandler, dr as VNode, ir as FunctionalComponent, lr as TagTransformer, n as ChildType, or as RafCallback, p as HostElement, rr as ErrorHandler, ur as UserBuildConditionals, v as PropsType, y as RuntimeRef } from "./index-BDAZsQzV.mjs";
2
2
  //#region src/client/client-build.d.ts
3
3
  /**
4
4
  * `isDev` / `isTesting` are getters, not copies: the transpile path (e.g. `@stencil/unplugin`)
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-DkvdNuPu.mjs";
1
+ import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-QadqfKfL.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  //#region src/client/client-decorators.ts
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { n as jsxDEV, r as jsxs, t as jsx } from "./client-DkvdNuPu.mjs";
1
+ import { n as jsxDEV, r as jsxs, t as jsx } from "./client-QadqfKfL.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,7 +1,7 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import "./client-DkvdNuPu.mjs";
3
- import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-pTCZhNi0.mjs";
4
- import { X as TASK_CANCELED_MSG, Z as buildError, et as catchError, it as isGlob, q as normalizePath, rt as shouldIgnoreError } from "./util-CP6-333M.mjs";
2
+ import "./client-QadqfKfL.mjs";
3
+ import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-k8xQHE77.mjs";
4
+ import { X as TASK_CANCELED_MSG, Z as buildError, et as catchError, it as isGlob, q as normalizePath, rt as shouldIgnoreError } from "./util-Cj2D3x_h.mjs";
5
5
  import fs from "node:fs";
6
6
  import nodePath from "node:path";
7
7
  import { pathToFileURL } from "node:url";
@@ -238,7 +238,11 @@ const HOST_FLAGS = {
238
238
  * coming from the runtime's own reflection aren't applied back to the prop.
239
239
  */
240
240
  isReflecting: 16384,
241
- devOnRender: 4096,
241
+ /**
242
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
243
+ */
244
+ isUpdateForced: 4096,
245
+ devOnRender: 32768,
242
246
  devOnDidLoad: 8192
243
247
  };
244
248
  const CF_scopedCssEncapsulation = 2;
@@ -2936,6 +2940,17 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
2936
2940
  if (ancestorComponent["s-pc"]) ancestorComponent["s-pc"].push(ensureFirstConnectPromise(hostRef));
2937
2941
  }
2938
2942
  };
2943
+ /**
2944
+ * Release the ancestor waiting on this component's update (registered by {@link attachToAncestor}).
2945
+ *
2946
+ * @param hostRef the component's host reference
2947
+ */
2948
+ const resolveAncestorWait = (hostRef) => {
2949
+ if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
2950
+ hostRef.$onRenderResolve$();
2951
+ hostRef.$onRenderResolve$ = void 0;
2952
+ }
2953
+ };
2939
2954
  const scheduleUpdate = (hostRef, isInitialLoad) => {
2940
2955
  if (BUILD.updatable) hostRef.$flags$ |= HOST_FLAGS.isQueuedForUpdate;
2941
2956
  if (BUILD.asyncLoading && hostRef.$flags$ & HOST_FLAGS.isWaitingForChildren) {
@@ -3001,8 +3016,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
3001
3016
  if (BUILD.updatable && hostRef.$queuedPropChanges$) {
3002
3017
  const changes = hostRef.$queuedPropChanges$;
3003
3018
  hostRef.$queuedPropChanges$ = void 0;
3004
- if (safeCall(instance, "componentShouldUpdate", changes, elm) === false) {
3019
+ if (safeCall(instance, "componentShouldUpdate", changes, elm) === false && !(hostRef.$flags$ & HOST_FLAGS.isUpdateForced)) {
3005
3020
  hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3021
+ resolveAncestorWait(hostRef);
3006
3022
  return;
3007
3023
  }
3008
3024
  }
@@ -3128,7 +3144,10 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
3128
3144
  * method, so we can call the method immediately. If not, check before calling it.
3129
3145
  */
3130
3146
  instance = allRenderFn ? instance.render() : instance.render && instance.render();
3131
- if (updatable) hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3147
+ if (updatable) {
3148
+ hostRef.$flags$ &= ~(HOST_FLAGS.isQueuedForUpdate | HOST_FLAGS.isUpdateForced);
3149
+ hostRef.$queuedPropChanges$ = void 0;
3150
+ }
3132
3151
  if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
3133
3152
  if (BUILD.hasRenderFn || BUILD.reflect) {
3134
3153
  if (BUILD.vdomRender || BUILD.reflect) {
@@ -3179,10 +3198,7 @@ const postUpdateComponent = (hostRef) => {
3179
3198
  }
3180
3199
  if (BUILD.method && BUILD.lazyLoad) hostRef.$onInstanceResolve$(elm);
3181
3200
  if (BUILD.asyncLoading) {
3182
- if (hostRef.$onRenderResolve$) {
3183
- hostRef.$onRenderResolve$();
3184
- hostRef.$onRenderResolve$ = void 0;
3185
- }
3201
+ resolveAncestorWait(hostRef);
3186
3202
  if (hostRef.$flags$ & HOST_FLAGS.needsRerender) nextTick(() => scheduleUpdate(hostRef, false));
3187
3203
  hostRef.$flags$ &= ~(HOST_FLAGS.isWaitingForChildren | HOST_FLAGS.needsRerender);
3188
3204
  }
@@ -3191,7 +3207,10 @@ const forceUpdate = (ref) => {
3191
3207
  if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
3192
3208
  const hostRef = getHostRef(ref);
3193
3209
  const isConnected = hostRef?.$hostElement$?.isConnected;
3194
- if (isConnected && (hostRef.$flags$ & (HOST_FLAGS.hasRendered | HOST_FLAGS.isQueuedForUpdate)) === HOST_FLAGS.hasRendered) scheduleUpdate(hostRef, false);
3210
+ if (isConnected && hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3211
+ hostRef.$flags$ |= HOST_FLAGS.isUpdateForced;
3212
+ if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3213
+ }
3195
3214
  return isConnected;
3196
3215
  }
3197
3216
  return false;
@@ -3349,13 +3368,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
3349
3368
  });
3350
3369
  }
3351
3370
  if (BUILD.updatable && flags & HOST_FLAGS.hasRendered) {
3352
- if (instance.componentShouldUpdate) {
3353
- const changes = hostRef.$queuedPropChanges$ ||= {};
3354
- changes[propName] = {
3355
- newVal,
3356
- oldVal: changes[propName]?.oldVal ?? oldVal
3357
- };
3358
- }
3371
+ if (instance.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[propName] ||= {
3372
+ oldVal,
3373
+ newVal
3374
+ }).newVal = newVal;
3359
3375
  if (!(flags & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3360
3376
  }
3361
3377
  }
@@ -3402,13 +3418,10 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
3402
3418
  disposers.push(effect(() => {
3403
3419
  const newVal = sig.value;
3404
3420
  if (hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3405
- if (instance?.componentShouldUpdate) {
3406
- const changes = hostRef.$queuedPropChanges$ ||= {};
3407
- changes[memberName] = {
3408
- newVal,
3409
- oldVal: changes[memberName]?.oldVal ?? prevScheduleVal
3410
- };
3411
- }
3421
+ if (instance?.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[memberName] ||= {
3422
+ oldVal: prevScheduleVal,
3423
+ newVal
3424
+ }).newVal = newVal;
3412
3425
  if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3413
3426
  }
3414
3427
  prevScheduleVal = newVal;
@@ -4792,10 +4805,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4792
4805
  else schedule();
4793
4806
  } catch (e) {
4794
4807
  consoleError(e, elm);
4795
- if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
4796
- hostRef.$onRenderResolve$();
4797
- hostRef.$onRenderResolve$ = void 0;
4798
- }
4808
+ resolveAncestorWait(hostRef);
4799
4809
  if (BUILD.asyncLoading) markFirstConnected(hostRef);
4800
4810
  if (BUILD.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & HOST_FLAGS.hasFailedLoad)) hostRef.$onReadyResolve$(elm);
4801
4811
  }
@@ -232,7 +232,11 @@ const HOST_FLAGS = {
232
232
  * coming from the runtime's own reflection aren't applied back to the prop.
233
233
  */
234
234
  isReflecting: 16384,
235
- devOnRender: 4096,
235
+ /**
236
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
237
+ */
238
+ isUpdateForced: 4096,
239
+ devOnRender: 32768,
236
240
  devOnDidLoad: 8192
237
241
  };
238
242
  const CF_scopedCssEncapsulation = 2;
@@ -2930,6 +2934,17 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
2930
2934
  if (ancestorComponent["s-pc"]) ancestorComponent["s-pc"].push(ensureFirstConnectPromise(hostRef));
2931
2935
  }
2932
2936
  };
2937
+ /**
2938
+ * Release the ancestor waiting on this component's update (registered by {@link attachToAncestor}).
2939
+ *
2940
+ * @param hostRef the component's host reference
2941
+ */
2942
+ const resolveAncestorWait = (hostRef) => {
2943
+ if (BUILD$1.asyncLoading && hostRef.$onRenderResolve$) {
2944
+ hostRef.$onRenderResolve$();
2945
+ hostRef.$onRenderResolve$ = void 0;
2946
+ }
2947
+ };
2933
2948
  const scheduleUpdate = (hostRef, isInitialLoad) => {
2934
2949
  if (BUILD$1.updatable) hostRef.$flags$ |= HOST_FLAGS.isQueuedForUpdate;
2935
2950
  if (BUILD$1.asyncLoading && hostRef.$flags$ & HOST_FLAGS.isWaitingForChildren) {
@@ -2995,8 +3010,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
2995
3010
  if (BUILD$1.updatable && hostRef.$queuedPropChanges$) {
2996
3011
  const changes = hostRef.$queuedPropChanges$;
2997
3012
  hostRef.$queuedPropChanges$ = void 0;
2998
- if (safeCall(instance, "componentShouldUpdate", changes, elm) === false) {
3013
+ if (safeCall(instance, "componentShouldUpdate", changes, elm) === false && !(hostRef.$flags$ & HOST_FLAGS.isUpdateForced)) {
2999
3014
  hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3015
+ resolveAncestorWait(hostRef);
3000
3016
  return;
3001
3017
  }
3002
3018
  }
@@ -3122,7 +3138,10 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
3122
3138
  * method, so we can call the method immediately. If not, check before calling it.
3123
3139
  */
3124
3140
  instance = allRenderFn ? instance.render() : instance.render && instance.render();
3125
- if (updatable) hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3141
+ if (updatable) {
3142
+ hostRef.$flags$ &= ~(HOST_FLAGS.isQueuedForUpdate | HOST_FLAGS.isUpdateForced);
3143
+ hostRef.$queuedPropChanges$ = void 0;
3144
+ }
3126
3145
  if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
3127
3146
  if (BUILD$1.hasRenderFn || BUILD$1.reflect) {
3128
3147
  if (BUILD$1.vdomRender || BUILD$1.reflect) {
@@ -3173,10 +3192,7 @@ const postUpdateComponent = (hostRef) => {
3173
3192
  }
3174
3193
  if (BUILD$1.method && BUILD$1.lazyLoad) hostRef.$onInstanceResolve$(elm);
3175
3194
  if (BUILD$1.asyncLoading) {
3176
- if (hostRef.$onRenderResolve$) {
3177
- hostRef.$onRenderResolve$();
3178
- hostRef.$onRenderResolve$ = void 0;
3179
- }
3195
+ resolveAncestorWait(hostRef);
3180
3196
  if (hostRef.$flags$ & HOST_FLAGS.needsRerender) nextTick(() => scheduleUpdate(hostRef, false));
3181
3197
  hostRef.$flags$ &= ~(HOST_FLAGS.isWaitingForChildren | HOST_FLAGS.needsRerender);
3182
3198
  }
@@ -3185,7 +3201,10 @@ const forceUpdate = (ref) => {
3185
3201
  if (BUILD$1.updatable && (Build.isBrowser || Build.isTesting)) {
3186
3202
  const hostRef = getHostRef(ref);
3187
3203
  const isConnected = hostRef?.$hostElement$?.isConnected;
3188
- if (isConnected && (hostRef.$flags$ & (HOST_FLAGS.hasRendered | HOST_FLAGS.isQueuedForUpdate)) === HOST_FLAGS.hasRendered) scheduleUpdate(hostRef, false);
3204
+ if (isConnected && hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3205
+ hostRef.$flags$ |= HOST_FLAGS.isUpdateForced;
3206
+ if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3207
+ }
3189
3208
  return isConnected;
3190
3209
  }
3191
3210
  return false;
@@ -3343,13 +3362,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
3343
3362
  });
3344
3363
  }
3345
3364
  if (BUILD$1.updatable && flags & HOST_FLAGS.hasRendered) {
3346
- if (instance.componentShouldUpdate) {
3347
- const changes = hostRef.$queuedPropChanges$ ||= {};
3348
- changes[propName] = {
3349
- newVal,
3350
- oldVal: changes[propName]?.oldVal ?? oldVal
3351
- };
3352
- }
3365
+ if (instance.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[propName] ||= {
3366
+ oldVal,
3367
+ newVal
3368
+ }).newVal = newVal;
3353
3369
  if (!(flags & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3354
3370
  }
3355
3371
  }
@@ -3396,13 +3412,10 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
3396
3412
  disposers.push(effect(() => {
3397
3413
  const newVal = sig.value;
3398
3414
  if (hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3399
- if (instance?.componentShouldUpdate) {
3400
- const changes = hostRef.$queuedPropChanges$ ||= {};
3401
- changes[memberName] = {
3402
- newVal,
3403
- oldVal: changes[memberName]?.oldVal ?? prevScheduleVal
3404
- };
3405
- }
3415
+ if (instance?.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[memberName] ||= {
3416
+ oldVal: prevScheduleVal,
3417
+ newVal
3418
+ }).newVal = newVal;
3406
3419
  if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3407
3420
  }
3408
3421
  prevScheduleVal = newVal;
@@ -4786,10 +4799,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4786
4799
  else schedule();
4787
4800
  } catch (e) {
4788
4801
  consoleError(e, elm);
4789
- if (BUILD$1.asyncLoading && hostRef.$onRenderResolve$) {
4790
- hostRef.$onRenderResolve$();
4791
- hostRef.$onRenderResolve$ = void 0;
4792
- }
4802
+ resolveAncestorWait(hostRef);
4793
4803
  if (BUILD$1.asyncLoading) markFirstConnected(hostRef);
4794
4804
  if (BUILD$1.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & HOST_FLAGS.hasFailedLoad)) hostRef.$onReadyResolve$(elm);
4795
4805
  }
@@ -144,7 +144,11 @@ const HOST_FLAGS = {
144
144
  * coming from the runtime's own reflection aren't applied back to the prop.
145
145
  */
146
146
  isReflecting: 16384,
147
- devOnRender: 4096,
147
+ /**
148
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
149
+ */
150
+ isUpdateForced: 4096,
151
+ devOnRender: 32768,
148
152
  devOnDidLoad: 8192
149
153
  };
150
154
  const CF_scopedCssEncapsulation = 2;
@@ -2802,6 +2806,17 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
2802
2806
  if (ancestorComponent["s-pc"]) ancestorComponent["s-pc"].push(ensureFirstConnectPromise(hostRef));
2803
2807
  }
2804
2808
  };
2809
+ /**
2810
+ * Release the ancestor waiting on this component's update (registered by {@link attachToAncestor}).
2811
+ *
2812
+ * @param hostRef the component's host reference
2813
+ */
2814
+ const resolveAncestorWait = (hostRef) => {
2815
+ if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
2816
+ hostRef.$onRenderResolve$();
2817
+ hostRef.$onRenderResolve$ = void 0;
2818
+ }
2819
+ };
2805
2820
  const scheduleUpdate = (hostRef, isInitialLoad) => {
2806
2821
  if (BUILD.updatable) hostRef.$flags$ |= HOST_FLAGS.isQueuedForUpdate;
2807
2822
  if (BUILD.asyncLoading && hostRef.$flags$ & HOST_FLAGS.isWaitingForChildren) {
@@ -2867,8 +2882,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
2867
2882
  if (BUILD.updatable && hostRef.$queuedPropChanges$) {
2868
2883
  const changes = hostRef.$queuedPropChanges$;
2869
2884
  hostRef.$queuedPropChanges$ = void 0;
2870
- if (safeCall(instance, "componentShouldUpdate", changes, elm) === false) {
2885
+ if (safeCall(instance, "componentShouldUpdate", changes, elm) === false && !(hostRef.$flags$ & HOST_FLAGS.isUpdateForced)) {
2871
2886
  hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
2887
+ resolveAncestorWait(hostRef);
2872
2888
  return;
2873
2889
  }
2874
2890
  }
@@ -2994,7 +3010,10 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
2994
3010
  * method, so we can call the method immediately. If not, check before calling it.
2995
3011
  */
2996
3012
  instance = allRenderFn ? instance.render() : instance.render && instance.render();
2997
- if (updatable) hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3013
+ if (updatable) {
3014
+ hostRef.$flags$ &= ~(HOST_FLAGS.isQueuedForUpdate | HOST_FLAGS.isUpdateForced);
3015
+ hostRef.$queuedPropChanges$ = void 0;
3016
+ }
2998
3017
  if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
2999
3018
  if (BUILD.hasRenderFn || BUILD.reflect) {
3000
3019
  if (BUILD.vdomRender || BUILD.reflect) {
@@ -3045,10 +3064,7 @@ const postUpdateComponent = (hostRef) => {
3045
3064
  }
3046
3065
  if (BUILD.method && BUILD.lazyLoad) hostRef.$onInstanceResolve$(elm);
3047
3066
  if (BUILD.asyncLoading) {
3048
- if (hostRef.$onRenderResolve$) {
3049
- hostRef.$onRenderResolve$();
3050
- hostRef.$onRenderResolve$ = void 0;
3051
- }
3067
+ resolveAncestorWait(hostRef);
3052
3068
  if (hostRef.$flags$ & HOST_FLAGS.needsRerender) nextTick(() => scheduleUpdate(hostRef, false));
3053
3069
  hostRef.$flags$ &= ~(HOST_FLAGS.isWaitingForChildren | HOST_FLAGS.needsRerender);
3054
3070
  }
@@ -3057,7 +3073,10 @@ const forceUpdate = (ref) => {
3057
3073
  if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
3058
3074
  const hostRef = getHostRef(ref);
3059
3075
  const isConnected = hostRef?.$hostElement$?.isConnected;
3060
- if (isConnected && (hostRef.$flags$ & (HOST_FLAGS.hasRendered | HOST_FLAGS.isQueuedForUpdate)) === HOST_FLAGS.hasRendered) scheduleUpdate(hostRef, false);
3076
+ if (isConnected && hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3077
+ hostRef.$flags$ |= HOST_FLAGS.isUpdateForced;
3078
+ if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3079
+ }
3061
3080
  return isConnected;
3062
3081
  }
3063
3082
  return false;
@@ -3215,13 +3234,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
3215
3234
  });
3216
3235
  }
3217
3236
  if (BUILD.updatable && flags & HOST_FLAGS.hasRendered) {
3218
- if (instance.componentShouldUpdate) {
3219
- const changes = hostRef.$queuedPropChanges$ ||= {};
3220
- changes[propName] = {
3221
- newVal,
3222
- oldVal: changes[propName]?.oldVal ?? oldVal
3223
- };
3224
- }
3237
+ if (instance.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[propName] ||= {
3238
+ oldVal,
3239
+ newVal
3240
+ }).newVal = newVal;
3225
3241
  if (!(flags & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3226
3242
  }
3227
3243
  }
@@ -3268,13 +3284,10 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
3268
3284
  disposers.push(effect(() => {
3269
3285
  const newVal = sig.value;
3270
3286
  if (hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3271
- if (instance?.componentShouldUpdate) {
3272
- const changes = hostRef.$queuedPropChanges$ ||= {};
3273
- changes[memberName] = {
3274
- newVal,
3275
- oldVal: changes[memberName]?.oldVal ?? prevScheduleVal
3276
- };
3277
- }
3287
+ if (instance?.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[memberName] ||= {
3288
+ oldVal: prevScheduleVal,
3289
+ newVal
3290
+ }).newVal = newVal;
3278
3291
  if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3279
3292
  }
3280
3293
  prevScheduleVal = newVal;
@@ -4658,10 +4671,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4658
4671
  else schedule();
4659
4672
  } catch (e) {
4660
4673
  consoleError(e, elm);
4661
- if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
4662
- hostRef.$onRenderResolve$();
4663
- hostRef.$onRenderResolve$ = void 0;
4664
- }
4674
+ resolveAncestorWait(hostRef);
4665
4675
  if (BUILD.asyncLoading) markFirstConnected(hostRef);
4666
4676
  if (BUILD.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & HOST_FLAGS.hasFailedLoad)) hostRef.$onReadyResolve$(elm);
4667
4677
  }
@@ -161,7 +161,11 @@ const HOST_FLAGS = {
161
161
  * coming from the runtime's own reflection aren't applied back to the prop.
162
162
  */
163
163
  isReflecting: 16384,
164
- devOnRender: 4096,
164
+ /**
165
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
166
+ */
167
+ isUpdateForced: 4096,
168
+ devOnRender: 32768,
165
169
  devOnDidLoad: 8192
166
170
  };
167
171
  const CF_scopedCssEncapsulation = 2;
@@ -2574,6 +2578,17 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
2574
2578
  if (ancestorComponent["s-pc"]) ancestorComponent["s-pc"].push(ensureFirstConnectPromise(hostRef));
2575
2579
  }
2576
2580
  };
2581
+ /**
2582
+ * Release the ancestor waiting on this component's update (registered by {@link attachToAncestor}).
2583
+ *
2584
+ * @param hostRef the component's host reference
2585
+ */
2586
+ const resolveAncestorWait = (hostRef) => {
2587
+ if (BUILD$1.asyncLoading && hostRef.$onRenderResolve$) {
2588
+ hostRef.$onRenderResolve$();
2589
+ hostRef.$onRenderResolve$ = void 0;
2590
+ }
2591
+ };
2577
2592
  const scheduleUpdate = (hostRef, isInitialLoad) => {
2578
2593
  if (BUILD$1.updatable) hostRef.$flags$ |= HOST_FLAGS.isQueuedForUpdate;
2579
2594
  if (BUILD$1.asyncLoading && hostRef.$flags$ & HOST_FLAGS.isWaitingForChildren) {
@@ -2639,8 +2654,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
2639
2654
  if (BUILD$1.updatable && hostRef.$queuedPropChanges$) {
2640
2655
  const changes = hostRef.$queuedPropChanges$;
2641
2656
  hostRef.$queuedPropChanges$ = void 0;
2642
- if (safeCall(instance, "componentShouldUpdate", changes, elm) === false) {
2657
+ if (safeCall(instance, "componentShouldUpdate", changes, elm) === false && !(hostRef.$flags$ & HOST_FLAGS.isUpdateForced)) {
2643
2658
  hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
2659
+ resolveAncestorWait(hostRef);
2644
2660
  return;
2645
2661
  }
2646
2662
  }
@@ -2766,7 +2782,10 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
2766
2782
  * method, so we can call the method immediately. If not, check before calling it.
2767
2783
  */
2768
2784
  instance = allRenderFn ? instance.render() : instance.render && instance.render();
2769
- if (updatable) hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
2785
+ if (updatable) {
2786
+ hostRef.$flags$ &= ~(HOST_FLAGS.isQueuedForUpdate | HOST_FLAGS.isUpdateForced);
2787
+ hostRef.$queuedPropChanges$ = void 0;
2788
+ }
2770
2789
  if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
2771
2790
  if (BUILD$1.hasRenderFn || BUILD$1.reflect) {
2772
2791
  if (BUILD$1.vdomRender || BUILD$1.reflect) {
@@ -2817,10 +2836,7 @@ const postUpdateComponent = (hostRef) => {
2817
2836
  }
2818
2837
  if (BUILD$1.method && BUILD$1.lazyLoad) hostRef.$onInstanceResolve$(elm);
2819
2838
  if (BUILD$1.asyncLoading) {
2820
- if (hostRef.$onRenderResolve$) {
2821
- hostRef.$onRenderResolve$();
2822
- hostRef.$onRenderResolve$ = void 0;
2823
- }
2839
+ resolveAncestorWait(hostRef);
2824
2840
  if (hostRef.$flags$ & HOST_FLAGS.needsRerender) nextTick(() => scheduleUpdate(hostRef, false));
2825
2841
  hostRef.$flags$ &= ~(HOST_FLAGS.isWaitingForChildren | HOST_FLAGS.needsRerender);
2826
2842
  }
@@ -2829,7 +2845,10 @@ const forceUpdate = (ref) => {
2829
2845
  if (BUILD$1.updatable && (Build.isBrowser || Build.isTesting)) {
2830
2846
  const hostRef = getHostRef(ref);
2831
2847
  const isConnected = hostRef?.$hostElement$?.isConnected;
2832
- if (isConnected && (hostRef.$flags$ & (HOST_FLAGS.hasRendered | HOST_FLAGS.isQueuedForUpdate)) === HOST_FLAGS.hasRendered) scheduleUpdate(hostRef, false);
2848
+ if (isConnected && hostRef.$flags$ & HOST_FLAGS.hasRendered) {
2849
+ hostRef.$flags$ |= HOST_FLAGS.isUpdateForced;
2850
+ if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
2851
+ }
2833
2852
  return isConnected;
2834
2853
  }
2835
2854
  return false;
@@ -2987,13 +3006,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
2987
3006
  });
2988
3007
  }
2989
3008
  if (BUILD$1.updatable && flags & HOST_FLAGS.hasRendered) {
2990
- if (instance.componentShouldUpdate) {
2991
- const changes = hostRef.$queuedPropChanges$ ||= {};
2992
- changes[propName] = {
2993
- newVal,
2994
- oldVal: changes[propName]?.oldVal ?? oldVal
2995
- };
2996
- }
3009
+ if (instance.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[propName] ||= {
3010
+ oldVal,
3011
+ newVal
3012
+ }).newVal = newVal;
2997
3013
  if (!(flags & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
2998
3014
  }
2999
3015
  }
@@ -3040,13 +3056,10 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
3040
3056
  disposers.push(effect(() => {
3041
3057
  const newVal = sig.value;
3042
3058
  if (hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3043
- if (instance?.componentShouldUpdate) {
3044
- const changes = hostRef.$queuedPropChanges$ ||= {};
3045
- changes[memberName] = {
3046
- newVal,
3047
- oldVal: changes[memberName]?.oldVal ?? prevScheduleVal
3048
- };
3049
- }
3059
+ if (instance?.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[memberName] ||= {
3060
+ oldVal: prevScheduleVal,
3061
+ newVal
3062
+ }).newVal = newVal;
3050
3063
  if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3051
3064
  }
3052
3065
  prevScheduleVal = newVal;
@@ -4428,10 +4441,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4428
4441
  else schedule();
4429
4442
  } catch (e) {
4430
4443
  consoleError(e, elm);
4431
- if (BUILD$1.asyncLoading && hostRef.$onRenderResolve$) {
4432
- hostRef.$onRenderResolve$();
4433
- hostRef.$onRenderResolve$ = void 0;
4434
- }
4444
+ resolveAncestorWait(hostRef);
4435
4445
  if (BUILD$1.asyncLoading) markFirstConnected(hostRef);
4436
4446
  if (BUILD$1.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & HOST_FLAGS.hasFailedLoad)) hostRef.$onReadyResolve$(elm);
4437
4447
  }
@@ -1,4 +1,4 @@
1
- import { Bt as Logger, nt as CompilerSystem } from "../../index-BxnfbT3a.mjs";
1
+ import { Bt as Logger, nt as CompilerSystem } from "../../index-BDAZsQzV.mjs";
2
2
  //#region src/sys/node/logger/index.d.ts
3
3
  /**
4
4
  * Create a logger to run in a Node environment
@@ -1,2 +1,2 @@
1
- import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-C59vQZNg.mjs";
1
+ import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-BR2GYgzY.mjs";
2
2
  export { createNodeLogger, createNodeSys, setupNodeProcess };
@@ -1,5 +1,5 @@
1
- import { l as createWorkerMessageHandler } from "../../compiler-ChKFuRry.mjs";
2
- import { t as createNodeSys } from "../../node-C59vQZNg.mjs";
1
+ import { l as createWorkerMessageHandler } from "../../compiler-DlA2VsX7.mjs";
2
+ import { t as createNodeSys } from "../../node-BR2GYgzY.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
@@ -3518,6 +3518,11 @@ interface ComponentCompilerFeatures {
3518
3518
  * - any lifecycle methods, including `render()`
3519
3519
  */
3520
3520
  isPlain: boolean;
3521
+ /**
3522
+ * `true` for a CSS-only component: a `@component`-marked stylesheet with no backing JS
3523
+ * class. The element is never defined/upgraded, so it only has the attributes its CSS reads.
3524
+ */
3525
+ isCssOnly: boolean;
3521
3526
  /**
3522
3527
  * A collection of tag names of web components that a component references in its JSX/h() function
3523
3528
  */
@@ -33,7 +33,7 @@ import "@rollup/pluginutils";
33
33
  import { createHash } from "crypto";
34
34
  import { afterAll, vi } from "vitest";
35
35
  //#region src/version.ts
36
- const version = "5.0.0-rc.10";
36
+ const version = "5.0.0-rc.11";
37
37
  const MEMBER_FLAGS = {
38
38
  String: 1,
39
39
  Number: 2,
@@ -93,7 +93,11 @@ const HOST_FLAGS = {
93
93
  * coming from the runtime's own reflection aren't applied back to the prop.
94
94
  */
95
95
  isReflecting: 16384,
96
- devOnRender: 4096,
96
+ /**
97
+ * Set by `forceUpdate()` so the next update renders even if `componentShouldUpdate` returns `false`.
98
+ */
99
+ isUpdateForced: 4096,
100
+ devOnRender: 32768,
97
101
  devOnDidLoad: 8192
98
102
  };
99
103
  const CF_scopedCssEncapsulation = 2;
@@ -3328,6 +3332,17 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
3328
3332
  if (ancestorComponent["s-pc"]) ancestorComponent["s-pc"].push(ensureFirstConnectPromise(hostRef));
3329
3333
  }
3330
3334
  };
3335
+ /**
3336
+ * Release the ancestor waiting on this component's update (registered by {@link attachToAncestor}).
3337
+ *
3338
+ * @param hostRef the component's host reference
3339
+ */
3340
+ const resolveAncestorWait = (hostRef) => {
3341
+ if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
3342
+ hostRef.$onRenderResolve$();
3343
+ hostRef.$onRenderResolve$ = void 0;
3344
+ }
3345
+ };
3331
3346
  const scheduleUpdate = (hostRef, isInitialLoad) => {
3332
3347
  if (BUILD.updatable) hostRef.$flags$ |= HOST_FLAGS.isQueuedForUpdate;
3333
3348
  if (BUILD.asyncLoading && hostRef.$flags$ & HOST_FLAGS.isWaitingForChildren) {
@@ -3393,8 +3408,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
3393
3408
  if (BUILD.updatable && hostRef.$queuedPropChanges$) {
3394
3409
  const changes = hostRef.$queuedPropChanges$;
3395
3410
  hostRef.$queuedPropChanges$ = void 0;
3396
- if (safeCall(instance, "componentShouldUpdate", changes, elm) === false) {
3411
+ if (safeCall(instance, "componentShouldUpdate", changes, elm) === false && !(hostRef.$flags$ & HOST_FLAGS.isUpdateForced)) {
3397
3412
  hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3413
+ resolveAncestorWait(hostRef);
3398
3414
  return;
3399
3415
  }
3400
3416
  }
@@ -3520,7 +3536,10 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
3520
3536
  * method, so we can call the method immediately. If not, check before calling it.
3521
3537
  */
3522
3538
  instance = allRenderFn ? instance.render() : instance.render && instance.render();
3523
- if (updatable) hostRef.$flags$ &= ~HOST_FLAGS.isQueuedForUpdate;
3539
+ if (updatable) {
3540
+ hostRef.$flags$ &= ~(HOST_FLAGS.isQueuedForUpdate | HOST_FLAGS.isUpdateForced);
3541
+ hostRef.$queuedPropChanges$ = void 0;
3542
+ }
3524
3543
  if (updatable || lazyLoad) hostRef.$flags$ |= HOST_FLAGS.hasRendered;
3525
3544
  if (BUILD.hasRenderFn || BUILD.reflect) {
3526
3545
  if (BUILD.vdomRender || BUILD.reflect) {
@@ -3571,10 +3590,7 @@ const postUpdateComponent = (hostRef) => {
3571
3590
  }
3572
3591
  if (BUILD.method && BUILD.lazyLoad) hostRef.$onInstanceResolve$(elm);
3573
3592
  if (BUILD.asyncLoading) {
3574
- if (hostRef.$onRenderResolve$) {
3575
- hostRef.$onRenderResolve$();
3576
- hostRef.$onRenderResolve$ = void 0;
3577
- }
3593
+ resolveAncestorWait(hostRef);
3578
3594
  if (hostRef.$flags$ & HOST_FLAGS.needsRerender) nextTick(() => scheduleUpdate(hostRef, false));
3579
3595
  hostRef.$flags$ &= ~(HOST_FLAGS.isWaitingForChildren | HOST_FLAGS.needsRerender);
3580
3596
  }
@@ -3583,7 +3599,10 @@ const forceUpdate = (ref) => {
3583
3599
  if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
3584
3600
  const hostRef = getHostRef(ref);
3585
3601
  const isConnected = hostRef?.$hostElement$?.isConnected;
3586
- if (isConnected && (hostRef.$flags$ & (HOST_FLAGS.hasRendered | HOST_FLAGS.isQueuedForUpdate)) === HOST_FLAGS.hasRendered) scheduleUpdate(hostRef, false);
3602
+ if (isConnected && hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3603
+ hostRef.$flags$ |= HOST_FLAGS.isUpdateForced;
3604
+ if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3605
+ }
3587
3606
  return isConnected;
3588
3607
  }
3589
3608
  return false;
@@ -3741,13 +3760,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
3741
3760
  });
3742
3761
  }
3743
3762
  if (BUILD.updatable && flags & HOST_FLAGS.hasRendered) {
3744
- if (instance.componentShouldUpdate) {
3745
- const changes = hostRef.$queuedPropChanges$ ||= {};
3746
- changes[propName] = {
3747
- newVal,
3748
- oldVal: changes[propName]?.oldVal ?? oldVal
3749
- };
3750
- }
3763
+ if (instance.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[propName] ||= {
3764
+ oldVal,
3765
+ newVal
3766
+ }).newVal = newVal;
3751
3767
  if (!(flags & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3752
3768
  }
3753
3769
  }
@@ -3794,13 +3810,10 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
3794
3810
  disposers.push(effect(() => {
3795
3811
  const newVal = sig.value;
3796
3812
  if (hostRef.$flags$ & HOST_FLAGS.hasRendered) {
3797
- if (instance?.componentShouldUpdate) {
3798
- const changes = hostRef.$queuedPropChanges$ ||= {};
3799
- changes[memberName] = {
3800
- newVal,
3801
- oldVal: changes[memberName]?.oldVal ?? prevScheduleVal
3802
- };
3803
- }
3813
+ if (instance?.componentShouldUpdate) ((hostRef.$queuedPropChanges$ ||= {})[memberName] ||= {
3814
+ oldVal: prevScheduleVal,
3815
+ newVal
3816
+ }).newVal = newVal;
3804
3817
  if (!(hostRef.$flags$ & HOST_FLAGS.isQueuedForUpdate)) scheduleUpdate(hostRef, false);
3805
3818
  }
3806
3819
  prevScheduleVal = newVal;
@@ -5169,10 +5182,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
5169
5182
  else schedule();
5170
5183
  } catch (e) {
5171
5184
  consoleError(e, elm);
5172
- if (BUILD.asyncLoading && hostRef.$onRenderResolve$) {
5173
- hostRef.$onRenderResolve$();
5174
- hostRef.$onRenderResolve$ = void 0;
5175
- }
5185
+ resolveAncestorWait(hostRef);
5176
5186
  if (BUILD.asyncLoading) markFirstConnected(hostRef);
5177
5187
  if (BUILD.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & HOST_FLAGS.hasFailedLoad)) hostRef.$onReadyResolve$(elm);
5178
5188
  }
@@ -7995,6 +8005,7 @@ const mockComponentMeta = (overrides = {}) => ({
7995
8005
  internal: false,
7996
8006
  isCollectionDependency: false,
7997
8007
  isPlain: false,
8008
+ isCssOnly: false,
7998
8009
  isUpdateable: false,
7999
8010
  jsFilePath: "/some/stubbed/path/my-component.js",
8000
8011
  listeners: [],
@@ -1,4 +1,4 @@
1
- import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, F as DOCS_README, I as DOCS_VSCODE, J as STANDALONE, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as CUSTOM, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, U as LOADER_BUNDLE, Y as STATS, f as isString, g as sortBy, j as DOCS_AGENT_SKILL, n as escapeWithPattern, q as SSR_WASM, r as flatOne, t as dashToPascalCase, v as toDashCase, w as COLLECTION, z as GLOBAL_STYLE } from "./helpers-pTCZhNi0.mjs";
1
+ import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, F as DOCS_README, I as DOCS_VSCODE, J as STANDALONE, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as CUSTOM, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, U as LOADER_BUNDLE, Y as STATS, f as isString, g as sortBy, j as DOCS_AGENT_SKILL, n as escapeWithPattern, q as SSR_WASM, r as flatOne, t as dashToPascalCase, v as toDashCase, w as COLLECTION, z as GLOBAL_STYLE } from "./helpers-k8xQHE77.mjs";
2
2
  import nodePath, { basename, dirname, relative } from "node:path";
3
3
  import picomatch from "picomatch";
4
4
  //#region src/utils/is-glob.ts
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import { C as CMP_FLAGS, H as LISTENER_FLAGS, W as MEMBER_FLAGS, et as WATCH_FLAGS, f as isString, l as isIterable, y as toTitleCase } from "./helpers-pTCZhNi0.mjs";
3
- import { $ as buildWarn, J as relative$1, Y as resolve$1, q as normalizePath } from "./util-CP6-333M.mjs";
2
+ import { C as CMP_FLAGS, H as LISTENER_FLAGS, W as MEMBER_FLAGS, et as WATCH_FLAGS, f as isString, l as isIterable, y as toTitleCase } from "./helpers-k8xQHE77.mjs";
3
+ import { $ as buildWarn, J as relative$1, Y as resolve$1, q as normalizePath } from "./util-Cj2D3x_h.mjs";
4
4
  import nodePath from "node:path";
5
5
  //#region src/utils/regular-expression.ts
6
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-rc.10",
3
+ "version": "5.0.0-rc.11",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -126,9 +126,9 @@
126
126
  "terser": "^5.50.0",
127
127
  "tinyglobby": "^0.2.17",
128
128
  "typescript": ">5.0.0 <7.0.0",
129
- "@stencil/dev-server": "5.0.0-rc.10",
130
- "@stencil/cli": "5.0.0-rc.10",
131
- "@stencil/mock-doc": "5.0.0-rc.10"
129
+ "@stencil/cli": "5.0.0-rc.11",
130
+ "@stencil/dev-server": "5.0.0-rc.11",
131
+ "@stencil/mock-doc": "5.0.0-rc.11"
132
132
  },
133
133
  "devDependencies": {
134
134
  "@ionic/prettier-config": "^4.0.0",