streetui 2.7.0 → 2.9.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-Bh0-5vdC.d.cts → hydration-diagnostics-BA9SaWKO.d.cts} +3 -3
- package/dist/{hydration-diagnostics-Bh0-5vdC.d.ts → hydration-diagnostics-BA9SaWKO.d.ts} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{renderer-interface-BOpzkWWQ.d.ts → renderer-interface-CNzoddaf.d.ts} +1 -1
- package/dist/{renderer-interface-D0021Or5.d.cts → renderer-interface-c16epeAz.d.cts} +1 -1
- package/dist/{server-cE_Qhu4k.d.cts → server-BFhhwu_p.d.cts} +1 -1
- package/dist/{server-CzcNNC9F.d.ts → server-iLQ8-vbg.d.ts} +1 -1
- package/dist/server.cjs +1 -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 +1 -1
- package/dist/server.js.map +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js +1 -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 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-
|
|
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-BA9SaWKO.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-BA9SaWKO.cjs';
|
|
3
|
+
import { L as Lifecycle, C as CleanupRegistry, D as DOMAdapter, N as NodeInstance, R as RenderContext } from './server-BFhhwu_p.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-BFhhwu_p.cjs';
|
|
5
|
+
import { R as RenderHandle, S as StreetRenderer } from './renderer-interface-c16epeAz.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A simple reactive store built on top of signals.
|
|
@@ -379,7 +379,7 @@ declare function createApplication(options: ApplicationOptions): Application;
|
|
|
379
379
|
* non-sensitive identifiers — never tokens, secrets, cookies, or form values.
|
|
380
380
|
*/
|
|
381
381
|
interface DiagnosticContext {
|
|
382
|
-
/** The package that produced the diagnostic, e.g.
|
|
382
|
+
/** The package that produced the diagnostic, e.g. `@streetui/renderer`. */
|
|
383
383
|
readonly package?: string;
|
|
384
384
|
/** The operation underway, e.g. `hydrate`, `compile`, `navigate`. */
|
|
385
385
|
readonly operation?: string;
|
|
@@ -705,7 +705,7 @@ declare class StyleRegistry {
|
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* The process-wide registry instance. Because consuming packages (`dsl` authoring
|
|
708
|
-
* and `renderer` SSR) both resolve
|
|
708
|
+
* and `renderer` SSR) both resolve `@streetui/core` to the *same* module, they
|
|
709
709
|
* share this one instance — the authoring side registers rules and the SSR side
|
|
710
710
|
* serializes them, with no cross-package plumbing.
|
|
711
711
|
*/
|
|
@@ -1060,7 +1060,7 @@ declare function styleVariants<V extends VariantGroups>(cfg: VariantConfig<V>):
|
|
|
1060
1060
|
* returned `class` is a plain string (deduped like any other `style()`), and the
|
|
1061
1061
|
* reactive binding is a single `StateRef { propKey: 'style.--s-<prop>' }` wired by
|
|
1062
1062
|
* the existing `wireSignalBindings`/`applyProp` pipeline. Core stays free of any
|
|
1063
|
-
*
|
|
1063
|
+
* `@streetui/state` dependency — the caller supplies the signal at the DSL layer.
|
|
1064
1064
|
*/
|
|
1065
1065
|
|
|
1066
1066
|
/** The reactive binding surface for one `styleWithVars` call. */
|
|
@@ -1458,7 +1458,7 @@ interface Job {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Optional error-reporting hook (v0.9 §26/§27). Structurally compatible with
|
|
1461
|
-
*
|
|
1461
|
+
* `@streetui/core`'s `DiagnosticSink` (the `error` method) so an application can
|
|
1462
1462
|
* route swallowed scheduler-job failures through its own logger instead of the
|
|
1463
1463
|
* default `console.error`. Kept as a local structural type so the scheduler
|
|
1464
1464
|
* stays dependency-free; no network, no telemetry. When unset, behaviour is
|
|
@@ -1974,7 +1974,7 @@ declare function patchNode(ctx: RenderContext, graphNode: GraphNode, propKey: st
|
|
|
1974
1974
|
|
|
1975
1975
|
/**
|
|
1976
1976
|
* The renderer's structural view of the resolved transition the DSL stores in
|
|
1977
|
-
* `__transition__<id>`. Mirrors
|
|
1977
|
+
* `__transition__<id>`. Mirrors `@streetui/dsl`'s `ResolvedTransition` without
|
|
1978
1978
|
* importing it (no renderer→dsl dependency).
|
|
1979
1979
|
*/
|
|
1980
1980
|
interface ResolvedTransitionLike {
|
|
@@ -2233,7 +2233,7 @@ declare function adoptServerStyles(dom: DOMAdapter, root: Element | null, option
|
|
|
2233
2233
|
* outside the hydrated app container, and only re-points token variables (§16).
|
|
2234
2234
|
*
|
|
2235
2235
|
* This lives in the renderer layer because switching the theme writes to the DOM;
|
|
2236
|
-
* it builds on the DOM-free token system in
|
|
2236
|
+
* it builds on the DOM-free token system in `@streetui/core` (`createThemeTokens`
|
|
2237
2237
|
* emits `:root` + `[data-theme="dark"]` variable blocks), so a theme flip is a
|
|
2238
2238
|
* single attribute change with no restyle work and no re-render.
|
|
2239
2239
|
*/
|
|
@@ -2639,7 +2639,7 @@ declare function mountRouter(router: Router, options: MountRouterOptions): Mount
|
|
|
2639
2639
|
* `required` first if a field is mandatory.
|
|
2640
2640
|
*
|
|
2641
2641
|
* Async validation is intentionally NOT part of this core. It can be layered on
|
|
2642
|
-
* top with
|
|
2642
|
+
* top with `@streetui/state`'s `resource()` (kick off a resource on value
|
|
2643
2643
|
* change and surface `resource.error` alongside the field error) without
|
|
2644
2644
|
* destabilising the synchronous validity model here.
|
|
2645
2645
|
*/
|
|
@@ -2658,7 +2658,7 @@ declare function pattern(regex: RegExp, message?: string): Validator;
|
|
|
2658
2658
|
declare function runValidators(value: string, validators: Validator | ReadonlyArray<Validator> | undefined): string | undefined;
|
|
2659
2659
|
|
|
2660
2660
|
/**
|
|
2661
|
-
* Reactive form model built entirely on
|
|
2661
|
+
* Reactive form model built entirely on `@streetui/state` signals.
|
|
2662
2662
|
*
|
|
2663
2663
|
* There is no second state system here: every piece of form state (`values`,
|
|
2664
2664
|
* `errors`, `touched`, `dirty`, `valid`, submission status) is a signal or a
|
|
@@ -2723,7 +2723,7 @@ interface Form<T extends FormValues> {
|
|
|
2723
2723
|
declare function createForm<T extends FormValues>(config: FormConfig<T>): Form<T>;
|
|
2724
2724
|
|
|
2725
2725
|
/**
|
|
2726
|
-
* streetui — build-time provider/consumer scoping.
|
|
2726
|
+
* @streetui/context — build-time provider/consumer scoping.
|
|
2727
2727
|
*
|
|
2728
2728
|
* StreetUI builds its semantic tree synchronously, top-down, when the DSL
|
|
2729
2729
|
* builders run. A `Context` mirrors that shape: `provide(value, run)` pushes a
|
|
@@ -2732,7 +2732,7 @@ declare function createForm<T extends FormValues>(config: FormConfig<T>): Form<T
|
|
|
2732
2732
|
* the *nearest* enclosing provider, falling back to the context default.
|
|
2733
2733
|
*
|
|
2734
2734
|
* This is deliberately NOT a second reactive system. A context value can be a
|
|
2735
|
-
* signal (see streetui); reactivity then belongs to that signal and is
|
|
2735
|
+
* signal (see @streetui/state); reactivity then belongs to that signal and is
|
|
2736
2736
|
* torn down by the normal node lifecycle when the consuming subtree unmounts —
|
|
2737
2737
|
* the context itself holds no subscriptions and leaves no refs behind after a
|
|
2738
2738
|
* `provide()` call returns.
|
|
@@ -2762,7 +2762,7 @@ declare function createContext<T>(defaultValue: T, description?: string): Contex
|
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Minimal, framework-native internationalization for StreetUI.
|
|
2764
2764
|
*
|
|
2765
|
-
* Built entirely on
|
|
2765
|
+
* Built entirely on `@streetui/state` signals — there is no second reactive
|
|
2766
2766
|
* system. The active locale is a writable signal; `t()` returns a derived
|
|
2767
2767
|
* signal that recomputes when the locale changes, so translations plug
|
|
2768
2768
|
* straight into the DSL's reactive text bindings (`text(() => i18n.t(...).get())`
|
|
@@ -3382,7 +3382,7 @@ interface PerformancePanel {
|
|
|
3382
3382
|
* Compilation diagnostics for the DevTools "Diagnostics" panel (§8). These are
|
|
3383
3383
|
* the compiler's own findings (errors + warnings), surfaced verbatim — not a
|
|
3384
3384
|
* runtime error stream. Runtime/production error reports flow through the
|
|
3385
|
-
* separate `reportError`/`DiagnosticSink` seam in
|
|
3385
|
+
* separate `reportError`/`DiagnosticSink` seam in `@streetui/core` (§7).
|
|
3386
3386
|
*/
|
|
3387
3387
|
interface DiagnosticsPanel {
|
|
3388
3388
|
readonly errors: number;
|
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 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-
|
|
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-BA9SaWKO.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-BA9SaWKO.js';
|
|
3
|
+
import { L as Lifecycle, C as CleanupRegistry, D as DOMAdapter, N as NodeInstance, R as RenderContext } from './server-iLQ8-vbg.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-iLQ8-vbg.js';
|
|
5
|
+
import { R as RenderHandle, S as StreetRenderer } from './renderer-interface-CNzoddaf.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A simple reactive store built on top of signals.
|
|
@@ -379,7 +379,7 @@ declare function createApplication(options: ApplicationOptions): Application;
|
|
|
379
379
|
* non-sensitive identifiers — never tokens, secrets, cookies, or form values.
|
|
380
380
|
*/
|
|
381
381
|
interface DiagnosticContext {
|
|
382
|
-
/** The package that produced the diagnostic, e.g.
|
|
382
|
+
/** The package that produced the diagnostic, e.g. `@streetui/renderer`. */
|
|
383
383
|
readonly package?: string;
|
|
384
384
|
/** The operation underway, e.g. `hydrate`, `compile`, `navigate`. */
|
|
385
385
|
readonly operation?: string;
|
|
@@ -705,7 +705,7 @@ declare class StyleRegistry {
|
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* The process-wide registry instance. Because consuming packages (`dsl` authoring
|
|
708
|
-
* and `renderer` SSR) both resolve
|
|
708
|
+
* and `renderer` SSR) both resolve `@streetui/core` to the *same* module, they
|
|
709
709
|
* share this one instance — the authoring side registers rules and the SSR side
|
|
710
710
|
* serializes them, with no cross-package plumbing.
|
|
711
711
|
*/
|
|
@@ -1060,7 +1060,7 @@ declare function styleVariants<V extends VariantGroups>(cfg: VariantConfig<V>):
|
|
|
1060
1060
|
* returned `class` is a plain string (deduped like any other `style()`), and the
|
|
1061
1061
|
* reactive binding is a single `StateRef { propKey: 'style.--s-<prop>' }` wired by
|
|
1062
1062
|
* the existing `wireSignalBindings`/`applyProp` pipeline. Core stays free of any
|
|
1063
|
-
*
|
|
1063
|
+
* `@streetui/state` dependency — the caller supplies the signal at the DSL layer.
|
|
1064
1064
|
*/
|
|
1065
1065
|
|
|
1066
1066
|
/** The reactive binding surface for one `styleWithVars` call. */
|
|
@@ -1458,7 +1458,7 @@ interface Job {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Optional error-reporting hook (v0.9 §26/§27). Structurally compatible with
|
|
1461
|
-
*
|
|
1461
|
+
* `@streetui/core`'s `DiagnosticSink` (the `error` method) so an application can
|
|
1462
1462
|
* route swallowed scheduler-job failures through its own logger instead of the
|
|
1463
1463
|
* default `console.error`. Kept as a local structural type so the scheduler
|
|
1464
1464
|
* stays dependency-free; no network, no telemetry. When unset, behaviour is
|
|
@@ -1974,7 +1974,7 @@ declare function patchNode(ctx: RenderContext, graphNode: GraphNode, propKey: st
|
|
|
1974
1974
|
|
|
1975
1975
|
/**
|
|
1976
1976
|
* The renderer's structural view of the resolved transition the DSL stores in
|
|
1977
|
-
* `__transition__<id>`. Mirrors
|
|
1977
|
+
* `__transition__<id>`. Mirrors `@streetui/dsl`'s `ResolvedTransition` without
|
|
1978
1978
|
* importing it (no renderer→dsl dependency).
|
|
1979
1979
|
*/
|
|
1980
1980
|
interface ResolvedTransitionLike {
|
|
@@ -2233,7 +2233,7 @@ declare function adoptServerStyles(dom: DOMAdapter, root: Element | null, option
|
|
|
2233
2233
|
* outside the hydrated app container, and only re-points token variables (§16).
|
|
2234
2234
|
*
|
|
2235
2235
|
* This lives in the renderer layer because switching the theme writes to the DOM;
|
|
2236
|
-
* it builds on the DOM-free token system in
|
|
2236
|
+
* it builds on the DOM-free token system in `@streetui/core` (`createThemeTokens`
|
|
2237
2237
|
* emits `:root` + `[data-theme="dark"]` variable blocks), so a theme flip is a
|
|
2238
2238
|
* single attribute change with no restyle work and no re-render.
|
|
2239
2239
|
*/
|
|
@@ -2639,7 +2639,7 @@ declare function mountRouter(router: Router, options: MountRouterOptions): Mount
|
|
|
2639
2639
|
* `required` first if a field is mandatory.
|
|
2640
2640
|
*
|
|
2641
2641
|
* Async validation is intentionally NOT part of this core. It can be layered on
|
|
2642
|
-
* top with
|
|
2642
|
+
* top with `@streetui/state`'s `resource()` (kick off a resource on value
|
|
2643
2643
|
* change and surface `resource.error` alongside the field error) without
|
|
2644
2644
|
* destabilising the synchronous validity model here.
|
|
2645
2645
|
*/
|
|
@@ -2658,7 +2658,7 @@ declare function pattern(regex: RegExp, message?: string): Validator;
|
|
|
2658
2658
|
declare function runValidators(value: string, validators: Validator | ReadonlyArray<Validator> | undefined): string | undefined;
|
|
2659
2659
|
|
|
2660
2660
|
/**
|
|
2661
|
-
* Reactive form model built entirely on
|
|
2661
|
+
* Reactive form model built entirely on `@streetui/state` signals.
|
|
2662
2662
|
*
|
|
2663
2663
|
* There is no second state system here: every piece of form state (`values`,
|
|
2664
2664
|
* `errors`, `touched`, `dirty`, `valid`, submission status) is a signal or a
|
|
@@ -2723,7 +2723,7 @@ interface Form<T extends FormValues> {
|
|
|
2723
2723
|
declare function createForm<T extends FormValues>(config: FormConfig<T>): Form<T>;
|
|
2724
2724
|
|
|
2725
2725
|
/**
|
|
2726
|
-
* streetui — build-time provider/consumer scoping.
|
|
2726
|
+
* @streetui/context — build-time provider/consumer scoping.
|
|
2727
2727
|
*
|
|
2728
2728
|
* StreetUI builds its semantic tree synchronously, top-down, when the DSL
|
|
2729
2729
|
* builders run. A `Context` mirrors that shape: `provide(value, run)` pushes a
|
|
@@ -2732,7 +2732,7 @@ declare function createForm<T extends FormValues>(config: FormConfig<T>): Form<T
|
|
|
2732
2732
|
* the *nearest* enclosing provider, falling back to the context default.
|
|
2733
2733
|
*
|
|
2734
2734
|
* This is deliberately NOT a second reactive system. A context value can be a
|
|
2735
|
-
* signal (see streetui); reactivity then belongs to that signal and is
|
|
2735
|
+
* signal (see @streetui/state); reactivity then belongs to that signal and is
|
|
2736
2736
|
* torn down by the normal node lifecycle when the consuming subtree unmounts —
|
|
2737
2737
|
* the context itself holds no subscriptions and leaves no refs behind after a
|
|
2738
2738
|
* `provide()` call returns.
|
|
@@ -2762,7 +2762,7 @@ declare function createContext<T>(defaultValue: T, description?: string): Contex
|
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Minimal, framework-native internationalization for StreetUI.
|
|
2764
2764
|
*
|
|
2765
|
-
* Built entirely on
|
|
2765
|
+
* Built entirely on `@streetui/state` signals — there is no second reactive
|
|
2766
2766
|
* system. The active locale is a writable signal; `t()` returns a derived
|
|
2767
2767
|
* signal that recomputes when the locale changes, so translations plug
|
|
2768
2768
|
* straight into the DSL's reactive text bindings (`text(() => i18n.t(...).get())`
|
|
@@ -3382,7 +3382,7 @@ interface PerformancePanel {
|
|
|
3382
3382
|
* Compilation diagnostics for the DevTools "Diagnostics" panel (§8). These are
|
|
3383
3383
|
* the compiler's own findings (errors + warnings), surfaced verbatim — not a
|
|
3384
3384
|
* runtime error stream. Runtime/production error reports flow through the
|
|
3385
|
-
* separate `reportError`/`DiagnosticSink` seam in
|
|
3385
|
+
* separate `reportError`/`DiagnosticSink` seam in `@streetui/core` (§7).
|
|
3386
3386
|
*/
|
|
3387
3387
|
interface DiagnosticsPanel {
|
|
3388
3388
|
readonly errors: number;
|
package/dist/index.js
CHANGED