streetui 2.5.0 → 2.6.0
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/bin.cjs +1 -1
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/bin.js.map +1 -1
- package/dist/create-bin.cjs +1 -1
- package/dist/create-bin.cjs.map +1 -1
- package/dist/create-bin.js +1 -1
- package/dist/create-bin.js.map +1 -1
- package/dist/{hydration-diagnostics-j2ged4cF.d.cts → hydration-diagnostics-D1GlzulR.d.cts} +82 -60
- package/dist/{hydration-diagnostics-j2ged4cF.d.ts → hydration-diagnostics-D1GlzulR.d.ts} +82 -60
- package/dist/index.cjs +60 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +59 -2
- package/dist/index.js.map +1 -1
- package/dist/{renderer-interface-hcqzG-N6.d.cts → renderer-interface-BzLwBsyj.d.cts} +1 -1
- package/dist/{renderer-interface-DngAhfHx.d.ts → renderer-interface-CmVlxE95.d.ts} +1 -1
- package/dist/{server-VTKCPoqG.d.ts → server-BP651UK6.d.ts} +1 -1
- package/dist/{server-Codluzqu.d.cts → server-LJGg4GyH.d.cts} +1 -1
- package/dist/server.cjs +23 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +23 -1
- package/dist/server.js.map +1 -1
- package/dist/testing.cjs +56 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +56 -1
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as Signal, d as Subscriber, U as Unsubscribe, R as ReadonlySignal, e as ResourceStatus, f as ResourceOptions, g as Resource, h as ResourceLoaderContext, A as ApplicationId, D as DiagnosticCollector, i as ApplicationGraph, G as GraphNode, C as CompiledApplication, j as HydrationDiagnosticSink, k as SemanticNodeType, P as PageDSL, T as TransitionConfig, l as ContainerDSL, m as SignalKind } from './hydration-diagnostics-
|
|
2
|
-
export { n as A11yOptions, o as AppBuilder, p as AppDSL, q as AppOptions, r as ApplicationGraphOptions, s as AsyncBoundaryBranches, B as BaseNode, t as Bindable, u as BindableString, v as BindableText, w as BoundInputOptions, x as ButtonOptions, y as CompileOptions, b as ComponentChildren,
|
|
3
|
-
import { L as Lifecycle, C as CleanupRegistry, D as DOMAdapter, N as NodeInstance, R as RenderContext } from './server-
|
|
4
|
-
export { H as HeadManager, a as LifecycleHook, b as LifecyclePhase, c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, e as createRenderContext, r as readState, f as renderHead, g as renderToString, s as serializeState, h as serverDOMAdapter, w as wireHeadBehavior } from './server-
|
|
5
|
-
import { R as RenderHandle, S as StreetRenderer } from './renderer-interface-
|
|
1
|
+
import { c as Signal, d as Subscriber, U as Unsubscribe, R as ReadonlySignal, e as ResourceStatus, f as ResourceOptions, g as Resource, h as ResourceLoaderContext, A as ApplicationId, D as DiagnosticCollector, i as ApplicationGraph, G as GraphNode, C as CompiledApplication, j as HydrationDiagnosticSink, k as SemanticNodeType, P as PageDSL, T as TransitionConfig, l as ContainerDSL, m as SignalKind } from './hydration-diagnostics-D1GlzulR.cjs';
|
|
2
|
+
export { n as A11yOptions, o as AppBuilder, p as AppDSL, q as AppOptions, r as ApplicationGraphOptions, s as AsyncBoundaryBranches, B as BaseNode, t as Bindable, u as BindableString, v as BindableText, w as BoundInputOptions, x as ButtonOptions, y as CodeOptions, z as CompileOptions, b as ComponentChildren, E as ComponentContext, a as ComponentDefinition, F as ComponentRender, I as ComponentSetup, b as ContainerBuilder, J as ContainerBuilderImpl, K as ContainerOptions, L as ContentDSL, M as ControlledInputOptions, N as DerivedSignal, O as Diagnostic, Q as DiagnosticError, W as DiagnosticLocation, X as DiagnosticSeverity, Y as ErrorBoundaryOptions, Z as ErrorFallbackBuilder, _ as ErrorSource, $ as EventDescriptor, a0 as FormBuilder, a1 as FormBuilderImpl, a2 as FormDSL, a3 as FormOptions, a4 as GraphNodeData, a5 as HandlerFn, a6 as HeadContribution, a7 as HeadEntry, a8 as HeadMetadata, a9 as HeadingOptions, H as HydrationDiagnostic, aa as HydrationMismatchType, ab as ImageOptions, ac as InputOptions, ad as InputOptionsBase, ae as LinkDescriptor, af as LinkOptions, ag as ListBuilder, ah as ListBuilderImpl, ai as ListDSL, aj as ListOptions, ak as ListPlanEntry, al as MetaDescriptor, am as NodeId, an as NodeMetadata, ao as OverlayOptions, ap as PageBuilder, aq as PageBuilderImpl, ar as PortalOptions, as as PropValue, at as Props, au as ReactiveConsumer, av as ReactiveSource, aw as ResolvedTransition, ax as ResourceLoader, ay as SectionBuilder, az as SectionBuilderImpl, aA as SectionDSL, aB as SectionOptions, aC as SerializedGraph, aD as SerializedNode, aE as StateRef, S as StreetApp, aF as StreetUI, aG as TextOptions, aH as TextValue, V as VERSION, aI as WhenOptions, aJ as batch, aK as compile, aL as compileGraph, aM as component, aN as consoleHydrationDiagnosticSink, aO as createHydrationDiagnosticCollector, aP as createNodeId, aQ as derived, aR as effect, aS as formatDiagnostic, aT as formatHydrationDiagnostic, aU as generateApplicationId, aV as generateNodeId, aW as isBatching, aX as isComponentDefinition, aY as isHeadContribution, aZ as isTransitionConfig, a_ as nextId, a$ as nodeIdPrefix, b0 as observerCount, b1 as reactiveListItemKey, b2 as reactiveListItemSignature, b3 as resetIdCounter, b4 as resolveHead, b5 as resolveTransition, b6 as resource, b7 as signal, b8 as signalKind, b9 as streetui } from './hydration-diagnostics-D1GlzulR.cjs';
|
|
3
|
+
import { L as Lifecycle, C as CleanupRegistry, D as DOMAdapter, N as NodeInstance, R as RenderContext } from './server-LJGg4GyH.cjs';
|
|
4
|
+
export { H as HeadManager, a as LifecycleHook, b as LifecyclePhase, c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, e as createRenderContext, r as readState, f as renderHead, g as renderToString, s as serializeState, h as serverDOMAdapter, w as wireHeadBehavior } from './server-LJGg4GyH.cjs';
|
|
5
|
+
import { R as RenderHandle, S as StreetRenderer } from './renderer-interface-BzLwBsyj.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A simple reactive store built on top of signals.
|
|
@@ -1557,6 +1557,17 @@ declare function createRouter(options: RouterOptions): Router;
|
|
|
1557
1557
|
|
|
1558
1558
|
/** Default id used for the route outlet element inside a shell. */
|
|
1559
1559
|
declare const ROUTER_OUTLET_ID = "streetui-router-outlet";
|
|
1560
|
+
/**
|
|
1561
|
+
* Stable reconciliation KEY of the outlet container `routerOutlet` emits.
|
|
1562
|
+
*
|
|
1563
|
+
* Hydration adoption is keyed on node identity, so a server render that fills
|
|
1564
|
+
* the outlet inline must emit its container with THIS key (and a matching id)
|
|
1565
|
+
* for the client to adopt the server node instead of silently recreating the
|
|
1566
|
+
* subtree. Exposed so SSR code references one symbol rather than restating the
|
|
1567
|
+
* `'router-outlet'` literal — the outlet contract then has a single source of
|
|
1568
|
+
* truth for both the key and (via {@link ROUTER_OUTLET_ID}) the default id.
|
|
1569
|
+
*/
|
|
1570
|
+
declare const ROUTER_OUTLET_KEY = "router-outlet";
|
|
1560
1571
|
/**
|
|
1561
1572
|
* Declare the route outlet inside a shell builder. The router replaces this
|
|
1562
1573
|
* element's contents on every navigation.
|
|
@@ -2654,4 +2665,4 @@ interface ResolvedConfig {
|
|
|
2654
2665
|
/** Identity helper that gives `streetui.config.ts` full type-checking + inference. */
|
|
2655
2666
|
declare function defineConfig(config: StreetUIConfig): StreetUIConfig;
|
|
2656
2667
|
|
|
2657
|
-
export { type A11yIds, type Announcer, Application, ApplicationGraph, ApplicationId, type ApplicationIdentity, type ApplicationInspection, type ApplicationOptions, type ApplicationPanel, type AuthSession, type AuthSessionConfig, type AuthStatus, BrowserDOMAdapter, CleanupRegistry, type Client, type ClientConfig, CompiledApplication, ContainerDSL, type Context, type ContextInspection, type ContextLike, DEFAULT_PERF_THRESHOLDS, DEVTOOLS_TABS, DOMAdapter, type DevToolsOptions, type DevToolsSession, type DevToolsSnapshot, type DevToolsSources, DiagnosticCollector, type DiagnosticContext, type DiagnosticSink, type DiagnosticsPanel, type DiagnosticsSummary, type DomBinding, DomEventRegistry, Environment, type EnvironmentCapabilities, type EnvironmentKind, type ErrorReport, type ErrorReportOptions, EventBus, type EventHandler, type EventInspection, FOCUSABLE_SELECTOR, type FetchLike, type Field, type Form, type FormConfig, type FormInspection, type FormLike, type FormValidators, type FormValues, GraphNode, HttpError, type HttpMethod, HydrationDiagnosticSink, type HydrationInspection, type I18n, type I18nConfig, type I18nInspection, type I18nLike, type InspectFormOptions, type InspectI18nOptions, type InspectResourceOptions, type InspectSignalGraphOptions, type InspectSignalOptions, type InspectedComponent, type InspectedEventNode, type InspectedInteractions, type InspectedNode, type InspectedOverlay, type InspectedPage, type InspectedTransition, type InteractiveDevToolsOptions, type InterpolationParams, type IsActiveOptions, type Job, Lifecycle, type LoadUser, type MatchResult, type MessageMap, type MountFn, type MountRouterOptions, type MountedApplication, type MountedRouter, type Mutation, type MutationInspection, type MutationLike, type MutationOptions, type MutationStatus, type Mutator, type NavigateOptions, NodeInstance, type NodeInstanceOptions, PageDSL, type PerfDiagnostic, type PerfDiagnosticCode, type PerfSnapshot, type PerfThresholds, type PerformancePanel, type PlanEntry, type Priority, ROUTER_OUTLET_ID, ReadonlySignal, type ReconcileResult, RenderContext, RenderHandle, type RequestConfig, type ResolvedConfig, type ResolvedTransitionLike, Resource, type ResourceInspection, type ResourceLike, ResourceLoaderContext, ResourceOptions, ResourceStatus, type RouteBuilder, type RouteContext, type RouteDefinition, type RouteMatch, type RouteMatchLike, type Router, type RouterHistory, type RouterInspection, type RouterLike, type RouterLocation, type RouterOptions, Runtime, RuntimeNodeInstance, type RuntimeOptions, Scheduler, type SchedulerDiagnostics, SemanticNodeType, ServerComment, ServerElement, ServerFragment, type ServerNode, type ServerNodeKind, type ServerParent, ServerRawHTML, ServerStyle, ServerText, type ShellBuilder, Signal, type SignalGraph, type SignalGraphEdge, type SignalGraphNode, type SignalInspection, SignalKind, type SignalsPanel, Store, type StoreState, type StreetEvent, type StreetEventType, StreetFrameworkError, StreetRenderHandle, StreetRenderer, StreetRendererImpl, type StreetRendererOptions, type StreetUIConfig, type SubmitStatus, Subscriber, TransitionConfig, TransitionController, type TransitionHooks, type TransitionPhase, Unsubscribe, type Validator, a11yIds, applyNodeProps, applyProp, bindDomEvent, browserDOMAdapter, buttonUpdate, consoleDiagnosticSink, containFocus, createAnnouncer, createApplication, createAuthSession, createBrowserHistory, createClient, createContext, createDevTools, createForm, createI18n, createMemoryHistory, createRenderer, createRouter, createRuntime, createStore, createStreetEvent, defineConfig, describeError, diagnosePerformance, email, environment, escapeHtml, escapeHtmlAttr, escapeHtmlText, flushSync, focusById, focusFirst, focusInitial, formatDiagnosticContext, frameworkError, getFocusable, getResolvedTransition, globalEventBus, headingUpdate, hydrateGraph, inputUpdate, inspectApplication, inspectComponents, inspectContext, inspectEvents, inspectForm, inspectGraph, inspectHydration, inspectI18n, inspectInteractions, inspectMutation, inspectResource, inspectRouter, inspectSignal, inspectSignalGraph, interpolate, linkUpdate, matchPattern, matchRoutes, maxLength, minLength, mountGraph, mountNode, mountRouter, mutation, nodeTypeStats, normalizePath, onEscape, patchNode, patchProp, pattern, printDiagnostics, printGraph, reconcileChildren, reconcileChildrenByPlan, renderDevToolsHTML, renderDevToolsReport, renderInteractiveDevTools, reportDiagnostic, reportError, required, resolveTag, restoreFocus, routerOutlet, rovingMenu, runElementTransition, runValidators, saveFocus, scheduleImmediate, scheduleUpdate, scheduler, serializeChildren, serializeServerNode, splitTarget, textUpdate, toIdToken, transformGraph, trapFocus, validateGraph, wireComponentBehavior, wireEvents, wireOverlayBehavior, wireReactiveList, wireSignalBindings };
|
|
2668
|
+
export { type A11yIds, type Announcer, Application, ApplicationGraph, ApplicationId, type ApplicationIdentity, type ApplicationInspection, type ApplicationOptions, type ApplicationPanel, type AuthSession, type AuthSessionConfig, type AuthStatus, BrowserDOMAdapter, CleanupRegistry, type Client, type ClientConfig, CompiledApplication, ContainerDSL, type Context, type ContextInspection, type ContextLike, DEFAULT_PERF_THRESHOLDS, DEVTOOLS_TABS, DOMAdapter, type DevToolsOptions, type DevToolsSession, type DevToolsSnapshot, type DevToolsSources, DiagnosticCollector, type DiagnosticContext, type DiagnosticSink, type DiagnosticsPanel, type DiagnosticsSummary, type DomBinding, DomEventRegistry, Environment, type EnvironmentCapabilities, type EnvironmentKind, type ErrorReport, type ErrorReportOptions, EventBus, type EventHandler, type EventInspection, FOCUSABLE_SELECTOR, type FetchLike, type Field, type Form, type FormConfig, type FormInspection, type FormLike, type FormValidators, type FormValues, GraphNode, HttpError, type HttpMethod, HydrationDiagnosticSink, type HydrationInspection, type I18n, type I18nConfig, type I18nInspection, type I18nLike, type InspectFormOptions, type InspectI18nOptions, type InspectResourceOptions, type InspectSignalGraphOptions, type InspectSignalOptions, type InspectedComponent, type InspectedEventNode, type InspectedInteractions, type InspectedNode, type InspectedOverlay, type InspectedPage, type InspectedTransition, type InteractiveDevToolsOptions, type InterpolationParams, type IsActiveOptions, type Job, Lifecycle, type LoadUser, type MatchResult, type MessageMap, type MountFn, type MountRouterOptions, type MountedApplication, type MountedRouter, type Mutation, type MutationInspection, type MutationLike, type MutationOptions, type MutationStatus, type Mutator, type NavigateOptions, NodeInstance, type NodeInstanceOptions, PageDSL, type PerfDiagnostic, type PerfDiagnosticCode, type PerfSnapshot, type PerfThresholds, type PerformancePanel, type PlanEntry, type Priority, ROUTER_OUTLET_ID, ROUTER_OUTLET_KEY, ReadonlySignal, type ReconcileResult, RenderContext, RenderHandle, type RequestConfig, type ResolvedConfig, type ResolvedTransitionLike, Resource, type ResourceInspection, type ResourceLike, ResourceLoaderContext, ResourceOptions, ResourceStatus, type RouteBuilder, type RouteContext, type RouteDefinition, type RouteMatch, type RouteMatchLike, type Router, type RouterHistory, type RouterInspection, type RouterLike, type RouterLocation, type RouterOptions, Runtime, RuntimeNodeInstance, type RuntimeOptions, Scheduler, type SchedulerDiagnostics, SemanticNodeType, ServerComment, ServerElement, ServerFragment, type ServerNode, type ServerNodeKind, type ServerParent, ServerRawHTML, ServerStyle, ServerText, type ShellBuilder, Signal, type SignalGraph, type SignalGraphEdge, type SignalGraphNode, type SignalInspection, SignalKind, type SignalsPanel, Store, type StoreState, type StreetEvent, type StreetEventType, StreetFrameworkError, StreetRenderHandle, StreetRenderer, StreetRendererImpl, type StreetRendererOptions, type StreetUIConfig, type SubmitStatus, Subscriber, TransitionConfig, TransitionController, type TransitionHooks, type TransitionPhase, Unsubscribe, type Validator, a11yIds, applyNodeProps, applyProp, bindDomEvent, browserDOMAdapter, buttonUpdate, consoleDiagnosticSink, containFocus, createAnnouncer, createApplication, createAuthSession, createBrowserHistory, createClient, createContext, createDevTools, createForm, createI18n, createMemoryHistory, createRenderer, createRouter, createRuntime, createStore, createStreetEvent, defineConfig, describeError, diagnosePerformance, email, environment, escapeHtml, escapeHtmlAttr, escapeHtmlText, flushSync, focusById, focusFirst, focusInitial, formatDiagnosticContext, frameworkError, getFocusable, getResolvedTransition, globalEventBus, headingUpdate, hydrateGraph, inputUpdate, inspectApplication, inspectComponents, inspectContext, inspectEvents, inspectForm, inspectGraph, inspectHydration, inspectI18n, inspectInteractions, inspectMutation, inspectResource, inspectRouter, inspectSignal, inspectSignalGraph, interpolate, linkUpdate, matchPattern, matchRoutes, maxLength, minLength, mountGraph, mountNode, mountRouter, mutation, nodeTypeStats, normalizePath, onEscape, patchNode, patchProp, pattern, printDiagnostics, printGraph, reconcileChildren, reconcileChildrenByPlan, renderDevToolsHTML, renderDevToolsReport, renderInteractiveDevTools, reportDiagnostic, reportError, required, resolveTag, restoreFocus, routerOutlet, rovingMenu, runElementTransition, runValidators, saveFocus, scheduleImmediate, scheduleUpdate, scheduler, serializeChildren, serializeServerNode, splitTarget, textUpdate, toIdToken, transformGraph, trapFocus, validateGraph, wireComponentBehavior, wireEvents, wireOverlayBehavior, wireReactiveList, wireSignalBindings };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as Signal, d as Subscriber, U as Unsubscribe, R as ReadonlySignal, e as ResourceStatus, f as ResourceOptions, g as Resource, h as ResourceLoaderContext, A as ApplicationId, D as DiagnosticCollector, i as ApplicationGraph, G as GraphNode, C as CompiledApplication, j as HydrationDiagnosticSink, k as SemanticNodeType, P as PageDSL, T as TransitionConfig, l as ContainerDSL, m as SignalKind } from './hydration-diagnostics-
|
|
2
|
-
export { n as A11yOptions, o as AppBuilder, p as AppDSL, q as AppOptions, r as ApplicationGraphOptions, s as AsyncBoundaryBranches, B as BaseNode, t as Bindable, u as BindableString, v as BindableText, w as BoundInputOptions, x as ButtonOptions, y as CompileOptions, b as ComponentChildren,
|
|
3
|
-
import { L as Lifecycle, C as CleanupRegistry, D as DOMAdapter, N as NodeInstance, R as RenderContext } from './server-
|
|
4
|
-
export { H as HeadManager, a as LifecycleHook, b as LifecyclePhase, c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, e as createRenderContext, r as readState, f as renderHead, g as renderToString, s as serializeState, h as serverDOMAdapter, w as wireHeadBehavior } from './server-
|
|
5
|
-
import { R as RenderHandle, S as StreetRenderer } from './renderer-interface-
|
|
1
|
+
import { c as Signal, d as Subscriber, U as Unsubscribe, R as ReadonlySignal, e as ResourceStatus, f as ResourceOptions, g as Resource, h as ResourceLoaderContext, A as ApplicationId, D as DiagnosticCollector, i as ApplicationGraph, G as GraphNode, C as CompiledApplication, j as HydrationDiagnosticSink, k as SemanticNodeType, P as PageDSL, T as TransitionConfig, l as ContainerDSL, m as SignalKind } from './hydration-diagnostics-D1GlzulR.js';
|
|
2
|
+
export { n as A11yOptions, o as AppBuilder, p as AppDSL, q as AppOptions, r as ApplicationGraphOptions, s as AsyncBoundaryBranches, B as BaseNode, t as Bindable, u as BindableString, v as BindableText, w as BoundInputOptions, x as ButtonOptions, y as CodeOptions, z as CompileOptions, b as ComponentChildren, E as ComponentContext, a as ComponentDefinition, F as ComponentRender, I as ComponentSetup, b as ContainerBuilder, J as ContainerBuilderImpl, K as ContainerOptions, L as ContentDSL, M as ControlledInputOptions, N as DerivedSignal, O as Diagnostic, Q as DiagnosticError, W as DiagnosticLocation, X as DiagnosticSeverity, Y as ErrorBoundaryOptions, Z as ErrorFallbackBuilder, _ as ErrorSource, $ as EventDescriptor, a0 as FormBuilder, a1 as FormBuilderImpl, a2 as FormDSL, a3 as FormOptions, a4 as GraphNodeData, a5 as HandlerFn, a6 as HeadContribution, a7 as HeadEntry, a8 as HeadMetadata, a9 as HeadingOptions, H as HydrationDiagnostic, aa as HydrationMismatchType, ab as ImageOptions, ac as InputOptions, ad as InputOptionsBase, ae as LinkDescriptor, af as LinkOptions, ag as ListBuilder, ah as ListBuilderImpl, ai as ListDSL, aj as ListOptions, ak as ListPlanEntry, al as MetaDescriptor, am as NodeId, an as NodeMetadata, ao as OverlayOptions, ap as PageBuilder, aq as PageBuilderImpl, ar as PortalOptions, as as PropValue, at as Props, au as ReactiveConsumer, av as ReactiveSource, aw as ResolvedTransition, ax as ResourceLoader, ay as SectionBuilder, az as SectionBuilderImpl, aA as SectionDSL, aB as SectionOptions, aC as SerializedGraph, aD as SerializedNode, aE as StateRef, S as StreetApp, aF as StreetUI, aG as TextOptions, aH as TextValue, V as VERSION, aI as WhenOptions, aJ as batch, aK as compile, aL as compileGraph, aM as component, aN as consoleHydrationDiagnosticSink, aO as createHydrationDiagnosticCollector, aP as createNodeId, aQ as derived, aR as effect, aS as formatDiagnostic, aT as formatHydrationDiagnostic, aU as generateApplicationId, aV as generateNodeId, aW as isBatching, aX as isComponentDefinition, aY as isHeadContribution, aZ as isTransitionConfig, a_ as nextId, a$ as nodeIdPrefix, b0 as observerCount, b1 as reactiveListItemKey, b2 as reactiveListItemSignature, b3 as resetIdCounter, b4 as resolveHead, b5 as resolveTransition, b6 as resource, b7 as signal, b8 as signalKind, b9 as streetui } from './hydration-diagnostics-D1GlzulR.js';
|
|
3
|
+
import { L as Lifecycle, C as CleanupRegistry, D as DOMAdapter, N as NodeInstance, R as RenderContext } from './server-BP651UK6.js';
|
|
4
|
+
export { H as HeadManager, a as LifecycleHook, b as LifecyclePhase, c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, e as createRenderContext, r as readState, f as renderHead, g as renderToString, s as serializeState, h as serverDOMAdapter, w as wireHeadBehavior } from './server-BP651UK6.js';
|
|
5
|
+
import { R as RenderHandle, S as StreetRenderer } from './renderer-interface-CmVlxE95.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A simple reactive store built on top of signals.
|
|
@@ -1557,6 +1557,17 @@ declare function createRouter(options: RouterOptions): Router;
|
|
|
1557
1557
|
|
|
1558
1558
|
/** Default id used for the route outlet element inside a shell. */
|
|
1559
1559
|
declare const ROUTER_OUTLET_ID = "streetui-router-outlet";
|
|
1560
|
+
/**
|
|
1561
|
+
* Stable reconciliation KEY of the outlet container `routerOutlet` emits.
|
|
1562
|
+
*
|
|
1563
|
+
* Hydration adoption is keyed on node identity, so a server render that fills
|
|
1564
|
+
* the outlet inline must emit its container with THIS key (and a matching id)
|
|
1565
|
+
* for the client to adopt the server node instead of silently recreating the
|
|
1566
|
+
* subtree. Exposed so SSR code references one symbol rather than restating the
|
|
1567
|
+
* `'router-outlet'` literal — the outlet contract then has a single source of
|
|
1568
|
+
* truth for both the key and (via {@link ROUTER_OUTLET_ID}) the default id.
|
|
1569
|
+
*/
|
|
1570
|
+
declare const ROUTER_OUTLET_KEY = "router-outlet";
|
|
1560
1571
|
/**
|
|
1561
1572
|
* Declare the route outlet inside a shell builder. The router replaces this
|
|
1562
1573
|
* element's contents on every navigation.
|
|
@@ -2654,4 +2665,4 @@ interface ResolvedConfig {
|
|
|
2654
2665
|
/** Identity helper that gives `streetui.config.ts` full type-checking + inference. */
|
|
2655
2666
|
declare function defineConfig(config: StreetUIConfig): StreetUIConfig;
|
|
2656
2667
|
|
|
2657
|
-
export { type A11yIds, type Announcer, Application, ApplicationGraph, ApplicationId, type ApplicationIdentity, type ApplicationInspection, type ApplicationOptions, type ApplicationPanel, type AuthSession, type AuthSessionConfig, type AuthStatus, BrowserDOMAdapter, CleanupRegistry, type Client, type ClientConfig, CompiledApplication, ContainerDSL, type Context, type ContextInspection, type ContextLike, DEFAULT_PERF_THRESHOLDS, DEVTOOLS_TABS, DOMAdapter, type DevToolsOptions, type DevToolsSession, type DevToolsSnapshot, type DevToolsSources, DiagnosticCollector, type DiagnosticContext, type DiagnosticSink, type DiagnosticsPanel, type DiagnosticsSummary, type DomBinding, DomEventRegistry, Environment, type EnvironmentCapabilities, type EnvironmentKind, type ErrorReport, type ErrorReportOptions, EventBus, type EventHandler, type EventInspection, FOCUSABLE_SELECTOR, type FetchLike, type Field, type Form, type FormConfig, type FormInspection, type FormLike, type FormValidators, type FormValues, GraphNode, HttpError, type HttpMethod, HydrationDiagnosticSink, type HydrationInspection, type I18n, type I18nConfig, type I18nInspection, type I18nLike, type InspectFormOptions, type InspectI18nOptions, type InspectResourceOptions, type InspectSignalGraphOptions, type InspectSignalOptions, type InspectedComponent, type InspectedEventNode, type InspectedInteractions, type InspectedNode, type InspectedOverlay, type InspectedPage, type InspectedTransition, type InteractiveDevToolsOptions, type InterpolationParams, type IsActiveOptions, type Job, Lifecycle, type LoadUser, type MatchResult, type MessageMap, type MountFn, type MountRouterOptions, type MountedApplication, type MountedRouter, type Mutation, type MutationInspection, type MutationLike, type MutationOptions, type MutationStatus, type Mutator, type NavigateOptions, NodeInstance, type NodeInstanceOptions, PageDSL, type PerfDiagnostic, type PerfDiagnosticCode, type PerfSnapshot, type PerfThresholds, type PerformancePanel, type PlanEntry, type Priority, ROUTER_OUTLET_ID, ReadonlySignal, type ReconcileResult, RenderContext, RenderHandle, type RequestConfig, type ResolvedConfig, type ResolvedTransitionLike, Resource, type ResourceInspection, type ResourceLike, ResourceLoaderContext, ResourceOptions, ResourceStatus, type RouteBuilder, type RouteContext, type RouteDefinition, type RouteMatch, type RouteMatchLike, type Router, type RouterHistory, type RouterInspection, type RouterLike, type RouterLocation, type RouterOptions, Runtime, RuntimeNodeInstance, type RuntimeOptions, Scheduler, type SchedulerDiagnostics, SemanticNodeType, ServerComment, ServerElement, ServerFragment, type ServerNode, type ServerNodeKind, type ServerParent, ServerRawHTML, ServerStyle, ServerText, type ShellBuilder, Signal, type SignalGraph, type SignalGraphEdge, type SignalGraphNode, type SignalInspection, SignalKind, type SignalsPanel, Store, type StoreState, type StreetEvent, type StreetEventType, StreetFrameworkError, StreetRenderHandle, StreetRenderer, StreetRendererImpl, type StreetRendererOptions, type StreetUIConfig, type SubmitStatus, Subscriber, TransitionConfig, TransitionController, type TransitionHooks, type TransitionPhase, Unsubscribe, type Validator, a11yIds, applyNodeProps, applyProp, bindDomEvent, browserDOMAdapter, buttonUpdate, consoleDiagnosticSink, containFocus, createAnnouncer, createApplication, createAuthSession, createBrowserHistory, createClient, createContext, createDevTools, createForm, createI18n, createMemoryHistory, createRenderer, createRouter, createRuntime, createStore, createStreetEvent, defineConfig, describeError, diagnosePerformance, email, environment, escapeHtml, escapeHtmlAttr, escapeHtmlText, flushSync, focusById, focusFirst, focusInitial, formatDiagnosticContext, frameworkError, getFocusable, getResolvedTransition, globalEventBus, headingUpdate, hydrateGraph, inputUpdate, inspectApplication, inspectComponents, inspectContext, inspectEvents, inspectForm, inspectGraph, inspectHydration, inspectI18n, inspectInteractions, inspectMutation, inspectResource, inspectRouter, inspectSignal, inspectSignalGraph, interpolate, linkUpdate, matchPattern, matchRoutes, maxLength, minLength, mountGraph, mountNode, mountRouter, mutation, nodeTypeStats, normalizePath, onEscape, patchNode, patchProp, pattern, printDiagnostics, printGraph, reconcileChildren, reconcileChildrenByPlan, renderDevToolsHTML, renderDevToolsReport, renderInteractiveDevTools, reportDiagnostic, reportError, required, resolveTag, restoreFocus, routerOutlet, rovingMenu, runElementTransition, runValidators, saveFocus, scheduleImmediate, scheduleUpdate, scheduler, serializeChildren, serializeServerNode, splitTarget, textUpdate, toIdToken, transformGraph, trapFocus, validateGraph, wireComponentBehavior, wireEvents, wireOverlayBehavior, wireReactiveList, wireSignalBindings };
|
|
2668
|
+
export { type A11yIds, type Announcer, Application, ApplicationGraph, ApplicationId, type ApplicationIdentity, type ApplicationInspection, type ApplicationOptions, type ApplicationPanel, type AuthSession, type AuthSessionConfig, type AuthStatus, BrowserDOMAdapter, CleanupRegistry, type Client, type ClientConfig, CompiledApplication, ContainerDSL, type Context, type ContextInspection, type ContextLike, DEFAULT_PERF_THRESHOLDS, DEVTOOLS_TABS, DOMAdapter, type DevToolsOptions, type DevToolsSession, type DevToolsSnapshot, type DevToolsSources, DiagnosticCollector, type DiagnosticContext, type DiagnosticSink, type DiagnosticsPanel, type DiagnosticsSummary, type DomBinding, DomEventRegistry, Environment, type EnvironmentCapabilities, type EnvironmentKind, type ErrorReport, type ErrorReportOptions, EventBus, type EventHandler, type EventInspection, FOCUSABLE_SELECTOR, type FetchLike, type Field, type Form, type FormConfig, type FormInspection, type FormLike, type FormValidators, type FormValues, GraphNode, HttpError, type HttpMethod, HydrationDiagnosticSink, type HydrationInspection, type I18n, type I18nConfig, type I18nInspection, type I18nLike, type InspectFormOptions, type InspectI18nOptions, type InspectResourceOptions, type InspectSignalGraphOptions, type InspectSignalOptions, type InspectedComponent, type InspectedEventNode, type InspectedInteractions, type InspectedNode, type InspectedOverlay, type InspectedPage, type InspectedTransition, type InteractiveDevToolsOptions, type InterpolationParams, type IsActiveOptions, type Job, Lifecycle, type LoadUser, type MatchResult, type MessageMap, type MountFn, type MountRouterOptions, type MountedApplication, type MountedRouter, type Mutation, type MutationInspection, type MutationLike, type MutationOptions, type MutationStatus, type Mutator, type NavigateOptions, NodeInstance, type NodeInstanceOptions, PageDSL, type PerfDiagnostic, type PerfDiagnosticCode, type PerfSnapshot, type PerfThresholds, type PerformancePanel, type PlanEntry, type Priority, ROUTER_OUTLET_ID, ROUTER_OUTLET_KEY, ReadonlySignal, type ReconcileResult, RenderContext, RenderHandle, type RequestConfig, type ResolvedConfig, type ResolvedTransitionLike, Resource, type ResourceInspection, type ResourceLike, ResourceLoaderContext, ResourceOptions, ResourceStatus, type RouteBuilder, type RouteContext, type RouteDefinition, type RouteMatch, type RouteMatchLike, type Router, type RouterHistory, type RouterInspection, type RouterLike, type RouterLocation, type RouterOptions, Runtime, RuntimeNodeInstance, type RuntimeOptions, Scheduler, type SchedulerDiagnostics, SemanticNodeType, ServerComment, ServerElement, ServerFragment, type ServerNode, type ServerNodeKind, type ServerParent, ServerRawHTML, ServerStyle, ServerText, type ShellBuilder, Signal, type SignalGraph, type SignalGraphEdge, type SignalGraphNode, type SignalInspection, SignalKind, type SignalsPanel, Store, type StoreState, type StreetEvent, type StreetEventType, StreetFrameworkError, StreetRenderHandle, StreetRenderer, StreetRendererImpl, type StreetRendererOptions, type StreetUIConfig, type SubmitStatus, Subscriber, TransitionConfig, TransitionController, type TransitionHooks, type TransitionPhase, Unsubscribe, type Validator, a11yIds, applyNodeProps, applyProp, bindDomEvent, browserDOMAdapter, buttonUpdate, consoleDiagnosticSink, containFocus, createAnnouncer, createApplication, createAuthSession, createBrowserHistory, createClient, createContext, createDevTools, createForm, createI18n, createMemoryHistory, createRenderer, createRouter, createRuntime, createStore, createStreetEvent, defineConfig, describeError, diagnosePerformance, email, environment, escapeHtml, escapeHtmlAttr, escapeHtmlText, flushSync, focusById, focusFirst, focusInitial, formatDiagnosticContext, frameworkError, getFocusable, getResolvedTransition, globalEventBus, headingUpdate, hydrateGraph, inputUpdate, inspectApplication, inspectComponents, inspectContext, inspectEvents, inspectForm, inspectGraph, inspectHydration, inspectI18n, inspectInteractions, inspectMutation, inspectResource, inspectRouter, inspectSignal, inspectSignalGraph, interpolate, linkUpdate, matchPattern, matchRoutes, maxLength, minLength, mountGraph, mountNode, mountRouter, mutation, nodeTypeStats, normalizePath, onEscape, patchNode, patchProp, pattern, printDiagnostics, printGraph, reconcileChildren, reconcileChildrenByPlan, renderDevToolsHTML, renderDevToolsReport, renderInteractiveDevTools, reportDiagnostic, reportError, required, resolveTag, restoreFocus, routerOutlet, rovingMenu, runElementTransition, runValidators, saveFocus, scheduleImmediate, scheduleUpdate, scheduler, serializeChildren, serializeServerNode, splitTarget, textUpdate, toIdToken, transformGraph, trapFocus, validateGraph, wireComponentBehavior, wireEvents, wireOverlayBehavior, wireReactiveList, wireSignalBindings };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
|
-
var VERSION = "2.
|
|
2
|
+
var VERSION = "2.6.0";
|
|
3
3
|
|
|
4
4
|
// ../state/src/signal.ts
|
|
5
5
|
var _activeConsumer = null;
|
|
@@ -1509,6 +1509,16 @@ var ContentBuilderBase = class {
|
|
|
1509
1509
|
node.addEvent({ type: "click", handlerKey });
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
+
code(source, options = {}) {
|
|
1513
|
+
const props = {};
|
|
1514
|
+
if (options.language !== void 0) props["data-language"] = options.language;
|
|
1515
|
+
if (options.class !== void 0) props["class"] = options.class;
|
|
1516
|
+
if (options.id !== void 0) props["id"] = options.id;
|
|
1517
|
+
applyA11yProps(props, options);
|
|
1518
|
+
const node = this._graph.createNode("code", { parent: this._node, props });
|
|
1519
|
+
const resolved = bindValue(this._graph, node, "text", source);
|
|
1520
|
+
node.setProp("text", resolved);
|
|
1521
|
+
}
|
|
1512
1522
|
};
|
|
1513
1523
|
var ContainerBuilderBase = class extends ContentBuilderBase {
|
|
1514
1524
|
section(key, builder, options = {}) {
|
|
@@ -3239,6 +3249,11 @@ var TAG_MAP = {
|
|
|
3239
3249
|
"list-item": "li",
|
|
3240
3250
|
image: "img",
|
|
3241
3251
|
link: "a",
|
|
3252
|
+
// A `code()` node renders as a semantic `<pre>` outer element; the mount/
|
|
3253
|
+
// hydrate branches add a single inner `<code>` holding the escaped source
|
|
3254
|
+
// (mirrors how `text` renders `<span>` + an inner text node). One graph
|
|
3255
|
+
// node → one outer element preserves positional hydration.
|
|
3256
|
+
code: "pre",
|
|
3242
3257
|
component: "div",
|
|
3243
3258
|
slot: "div",
|
|
3244
3259
|
fragment: "div",
|
|
@@ -3994,6 +4009,23 @@ function mountNode(ctx, graphNode, parentDom) {
|
|
|
3994
4009
|
dom.appendChild(parentDom, el2);
|
|
3995
4010
|
return instance2;
|
|
3996
4011
|
}
|
|
4012
|
+
if (graphNode.type === "code") {
|
|
4013
|
+
const source = String(graphNode.getProp("text") ?? "");
|
|
4014
|
+
const pre = dom.createElement("pre");
|
|
4015
|
+
const codeEl = dom.createElement("code");
|
|
4016
|
+
const textNode = dom.createTextNode(source);
|
|
4017
|
+
dom.appendChild(codeEl, textNode);
|
|
4018
|
+
dom.appendChild(pre, codeEl);
|
|
4019
|
+
applyNodeProps(ctx, graphNode, pre);
|
|
4020
|
+
const instance2 = new NodeInstance(graphNode, pre);
|
|
4021
|
+
ctx.instances.set(graphNode.id, instance2);
|
|
4022
|
+
wireEvents(dom, graph, graphNode, pre, instance2);
|
|
4023
|
+
if (graphNode.stateRefs.length !== 0) {
|
|
4024
|
+
wireSignalBindings(ctx, graphNode, instance2, textUpdate(dom, pre, textNode));
|
|
4025
|
+
}
|
|
4026
|
+
dom.appendChild(parentDom, pre);
|
|
4027
|
+
return instance2;
|
|
4028
|
+
}
|
|
3997
4029
|
if (graphNode.type === "link") {
|
|
3998
4030
|
const el2 = dom.createElement("a");
|
|
3999
4031
|
const href = graphNode.getProp("href");
|
|
@@ -4382,6 +4414,27 @@ function hydrateNode(ctx, graphNode, domNode, path) {
|
|
|
4382
4414
|
}
|
|
4383
4415
|
return instance;
|
|
4384
4416
|
}
|
|
4417
|
+
case "code": {
|
|
4418
|
+
let codeEl = dom.firstChild(domNode);
|
|
4419
|
+
if (codeEl === null || dom.isTextNode(codeEl)) {
|
|
4420
|
+
const createdCode = dom.createElement("code");
|
|
4421
|
+
dom.appendChild(domNode, createdCode);
|
|
4422
|
+
codeEl = createdCode;
|
|
4423
|
+
}
|
|
4424
|
+
let textNode = dom.firstChild(codeEl);
|
|
4425
|
+
if (textNode === null || !dom.isTextNode(textNode)) {
|
|
4426
|
+
const created = dom.createTextNode(String(graphNode.getProp("text") ?? ""));
|
|
4427
|
+
dom.appendChild(codeEl, created);
|
|
4428
|
+
textNode = created;
|
|
4429
|
+
}
|
|
4430
|
+
const instance = new NodeInstance(graphNode, domNode);
|
|
4431
|
+
ctx.instances.set(graphNode.id, instance);
|
|
4432
|
+
wireEvents(dom, graph, graphNode, domNode, instance);
|
|
4433
|
+
if (graphNode.stateRefs.length !== 0) {
|
|
4434
|
+
wireSignalBindings(ctx, graphNode, instance, textUpdate(dom, domNode, textNode));
|
|
4435
|
+
}
|
|
4436
|
+
return instance;
|
|
4437
|
+
}
|
|
4385
4438
|
case "image":
|
|
4386
4439
|
case "link": {
|
|
4387
4440
|
const instance = new NodeInstance(graphNode, domNode);
|
|
@@ -4533,6 +4586,8 @@ function expectedTag(ctx, graphNode) {
|
|
|
4533
4586
|
return "img";
|
|
4534
4587
|
case "link":
|
|
4535
4588
|
return "a";
|
|
4589
|
+
case "code":
|
|
4590
|
+
return "pre";
|
|
4536
4591
|
case "button":
|
|
4537
4592
|
return "button";
|
|
4538
4593
|
default:
|
|
@@ -4982,8 +5037,9 @@ function createRouter(options) {
|
|
|
4982
5037
|
|
|
4983
5038
|
// ../router/src/mount-router.ts
|
|
4984
5039
|
var ROUTER_OUTLET_ID = "streetui-router-outlet";
|
|
5040
|
+
var ROUTER_OUTLET_KEY = "router-outlet";
|
|
4985
5041
|
function routerOutlet(scope, id = ROUTER_OUTLET_ID) {
|
|
4986
|
-
scope.container(
|
|
5042
|
+
scope.container(ROUTER_OUTLET_KEY, () => {
|
|
4987
5043
|
}, { id });
|
|
4988
5044
|
}
|
|
4989
5045
|
function isExternalHref(href) {
|
|
@@ -6407,6 +6463,7 @@ export {
|
|
|
6407
6463
|
NodeInstance,
|
|
6408
6464
|
PageBuilderImpl,
|
|
6409
6465
|
ROUTER_OUTLET_ID,
|
|
6466
|
+
ROUTER_OUTLET_KEY,
|
|
6410
6467
|
Runtime,
|
|
6411
6468
|
RuntimeNodeInstance,
|
|
6412
6469
|
STATE_MARKER_ATTR,
|