@farm.js/react 0.1.0-beta.4 → 0.1.0-beta.6

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.
@@ -2,6 +2,28 @@ import React from 'react';
2
2
 
3
3
  type CompilerStateUpdater = unknown | ((previous: unknown) => unknown);
4
4
  type CompilerRuntimeReactivity = "static" | "hybrid";
5
+ type CompilerKeyedCollectionKind = "set" | "map";
6
+ type CompilerKeyedCollectionMutation = "set-add" | "set-delete" | "map-set" | "map-delete";
7
+ /** @internal Records compiler-proven same-order Array.map metadata and returns the Array. */
8
+ declare function createCompilerKeyedMapUpdate(previous: unknown, value: unknown, changedIndices: readonly number[]): unknown;
9
+ /** @internal Records a compiler-proven immutable keyed-array append and returns the Array. */
10
+ declare function createCompilerKeyedArrayAppend(previous: unknown, value: unknown): unknown;
11
+ /** @internal Records a compiler-proven immutable keyed-array prepend and returns the Array. */
12
+ declare function createCompilerKeyedArrayPrepend(previous: unknown, value: unknown): unknown;
13
+ /** @internal Executes Array.filter while recording compiler-proven removal positions. */
14
+ declare function createCompilerKeyedArrayFilter(previous: unknown, method: unknown, predicate: unknown): unknown;
15
+ /** @internal Executes a compiler-proven native Array.slice and records its retained interval. */
16
+ declare function createCompilerKeyedArraySlice(previous: unknown, method: unknown, ...args: readonly number[]): unknown;
17
+ /** @internal Records a compiler-proven retained tail followed by incoming keyed rows. */
18
+ declare function createCompilerKeyedArrayRollingWindow(previous: unknown, retained: unknown, value: unknown): unknown;
19
+ /** @internal Executes a native known-position insert or replacement and records its position. */
20
+ declare function createCompilerKeyedArrayPositionUpdate(previous: unknown, method: unknown, kind: "insert" | "replace", position: number, ...args: readonly unknown[]): unknown;
21
+ /** @internal Executes a native reverse and records its exact keyed-row permutation. */
22
+ declare function createCompilerKeyedArrayReorder(previous: unknown, method: unknown): unknown;
23
+ /** @internal Preserves a proven native collection mutation while recording its executed key. */
24
+ declare function applyCompilerKeyedCollectionMutation(collection: unknown, method: unknown, operation: CompilerKeyedCollectionMutation, key: unknown, value?: unknown): unknown;
25
+ /** @internal Connects compiler-owned immutable Set/Map mutations to their committed source. */
26
+ declare function createCompilerKeyedCollectionUpdate(previous: unknown, value: unknown, kind: CompilerKeyedCollectionKind): unknown;
5
27
  interface CompilerCell {
6
28
  get(): unknown;
7
29
  set(next: CompilerStateUpdater): void;
@@ -165,14 +187,41 @@ interface CompilerKeyedRowBinding {
165
187
  name?: string;
166
188
  /** Component state cells read by this binding, when emitted by the compiler. */
167
189
  dependencies?: readonly number[];
190
+ /** A compiler-proven primitive value compared strictly with this row's key. */
191
+ identityTarget?: {
192
+ dependency: number;
193
+ read(): unknown;
194
+ };
195
+ /** A compiler-proven native Set whose members are compared with this row's key. */
196
+ membershipTarget?: {
197
+ dependency: number;
198
+ read(): unknown;
199
+ };
200
+ /** A compiler-proven native Map whose values are read with this row's key. */
201
+ mapLookupTarget?: {
202
+ dependency: number;
203
+ read(): unknown;
204
+ };
168
205
  read(item: unknown, index: number): unknown;
169
206
  }
170
207
  interface CompilerKeyedRowsBlockProps {
171
208
  id: number;
172
209
  render(event: (item: unknown, index: number, eventId: number) => React.EventHandler<React.SyntheticEvent>, conditional: (item: unknown, index: number, conditionalId: number, render: (item: unknown, index: number) => React.ReactNode) => React.ReactNode): React.ReactElement;
173
210
  items(): Iterable<unknown> | null | undefined;
211
+ /** Complete component-state dependencies used anywhere inside this boundary. */
212
+ dependencies?: readonly number[];
174
213
  /** State cells that can change the row collection or its key projection. */
175
214
  structureDependencies?: readonly number[];
215
+ /** Direct state cell supplying items, eligible for compiler-emitted update hints. */
216
+ collectionDependency?: number;
217
+ /** Compiler proof that shifted row indexes are not observed by this boundary. */
218
+ filterIndexIndependent?: boolean;
219
+ /** Compiler proof that prepending cannot expose shifted indexes to existing rows. */
220
+ prependIndexIndependent?: boolean;
221
+ /** Compiler proof that a known-position insert cannot expose shifted row indexes. */
222
+ positionIndexIndependent?: boolean;
223
+ /** Compiler proof that reordering cannot expose changed row indexes. */
224
+ reorderIndexIndependent?: boolean;
176
225
  rowKey(item: unknown, index: number): React.Key;
177
226
  create(item: unknown, index: number): CompilerKeyedRowElement;
178
227
  bindings: readonly CompilerKeyedRowBinding[];
@@ -244,13 +293,72 @@ interface CompiledComponentDefinition<Props> {
244
293
  render(props: Props, state: readonly CompilerCell[], blocks: CompilerBlockRuntime): React.ReactElement;
245
294
  bindings: readonly CompilerBinding<Props>[];
246
295
  }
296
+ type CompilerBlockRefresh = (afterCommit?: () => void, dirtyState?: ReadonlySet<number>) => void;
297
+ interface CompilerRuntimeFeatureOwner {
298
+ setRoot(id: number, root: Element | null): void;
299
+ subscribe(id: number, refresh: CompilerBlockRefresh): () => void;
300
+ }
301
+ interface CompilerRuntimeFeature {
302
+ /** Stable identity used by Fast Refresh compatibility checks. */
303
+ name: string;
304
+ create(owner: CompilerRuntimeFeatureOwner): Partial<CompilerBlockRuntime>;
305
+ }
306
+ declare const conditionalRuntimeFeature: CompilerRuntimeFeature;
307
+ declare const hostConditionalRuntimeFeature: CompilerRuntimeFeature;
308
+ declare const conditionalRangesRuntimeFeature: CompilerRuntimeFeature;
309
+ declare const keyedListRuntimeFeature: CompilerRuntimeFeature;
310
+ declare const keyedRowsRuntimeFeature: CompilerRuntimeFeature;
311
+ declare const keyedRowsHintedRuntimeFeature: CompilerRuntimeFeature;
312
+ declare const keyedRowsPositionHintedRuntimeFeature: CompilerRuntimeFeature;
313
+ declare const keyedRowsReorderHintedRuntimeFeature: CompilerRuntimeFeature;
314
+ declare const keyedRowsAllHintedRuntimeFeature: CompilerRuntimeFeature;
315
+ declare const keyedRowsEveryHintedRuntimeFeature: CompilerRuntimeFeature;
316
+ declare const keyedRowsFilterHintedRuntimeFeature: CompilerRuntimeFeature;
317
+ declare const keyedRowsPrependHintedRuntimeFeature: CompilerRuntimeFeature;
318
+ declare const keyedRowsFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
319
+ declare const keyedRowsConditionalRuntimeFeature: CompilerRuntimeFeature;
320
+ declare const keyedRowsConditionalHintedRuntimeFeature: CompilerRuntimeFeature;
321
+ declare const keyedRowsConditionalPositionHintedRuntimeFeature: CompilerRuntimeFeature;
322
+ declare const keyedRowsConditionalReorderHintedRuntimeFeature: CompilerRuntimeFeature;
323
+ declare const keyedRowsConditionalAllHintedRuntimeFeature: CompilerRuntimeFeature;
324
+ declare const keyedRowsConditionalEveryHintedRuntimeFeature: CompilerRuntimeFeature;
325
+ declare const keyedRowsConditionalFilterHintedRuntimeFeature: CompilerRuntimeFeature;
326
+ declare const keyedRowsConditionalPrependHintedRuntimeFeature: CompilerRuntimeFeature;
327
+ declare const keyedRowsConditionalFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
328
+ declare const keyedRowsHostRuntimeFeature: CompilerRuntimeFeature;
329
+ declare const keyedRowsHostHintedRuntimeFeature: CompilerRuntimeFeature;
330
+ declare const keyedRowsHostPositionHintedRuntimeFeature: CompilerRuntimeFeature;
331
+ declare const keyedRowsHostReorderHintedRuntimeFeature: CompilerRuntimeFeature;
332
+ declare const keyedRowsHostAllHintedRuntimeFeature: CompilerRuntimeFeature;
333
+ declare const keyedRowsHostEveryHintedRuntimeFeature: CompilerRuntimeFeature;
334
+ declare const keyedRowsHostFilterHintedRuntimeFeature: CompilerRuntimeFeature;
335
+ declare const keyedRowsHostPrependHintedRuntimeFeature: CompilerRuntimeFeature;
336
+ declare const keyedRowsHostFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
337
+ declare const keyedRowsCompleteRuntimeFeature: CompilerRuntimeFeature;
338
+ declare const keyedRowsCompleteHintedRuntimeFeature: CompilerRuntimeFeature;
339
+ declare const keyedRowsCompletePositionHintedRuntimeFeature: CompilerRuntimeFeature;
340
+ declare const keyedRowsCompleteReorderHintedRuntimeFeature: CompilerRuntimeFeature;
341
+ declare const keyedRowsCompleteAllHintedRuntimeFeature: CompilerRuntimeFeature;
342
+ declare const keyedRowsCompleteEveryHintedRuntimeFeature: CompilerRuntimeFeature;
343
+ declare const keyedRowsCompleteFilterHintedRuntimeFeature: CompilerRuntimeFeature;
344
+ declare const keyedRowsCompletePrependHintedRuntimeFeature: CompilerRuntimeFeature;
345
+ declare const keyedRowsCompleteFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
346
+ declare const keyedRangesRuntimeFeature: CompilerRuntimeFeature;
347
+ declare const mixedRangesRuntimeFeature: CompilerRuntimeFeature;
348
+ declare const componentRuntimeFeature: CompilerRuntimeFeature;
247
349
  /**
248
- * Runtime target emitted by the AOT transform.
350
+ * Tree-shakable runtime target emitted by the AOT transform.
249
351
  *
250
352
  * React owns initial placement, SSR, hydration, props, and event semantics.
251
- * Compiler cells own local updates and precomputed DOM paths. A proven host-only
252
- * keyed container may transfer its child-row ownership after mount.
353
+ * Compiler cells own local updates and precomputed DOM paths. Structural
354
+ * helpers are installed only when the compiler emitted that boundary kind.
355
+ */
356
+ declare function createCompiledComponentWithFeatures<Props>(definition: CompiledComponentDefinition<Props>, runtimeFeatures: readonly CompilerRuntimeFeature[]): React.ComponentType<Props>;
357
+ /**
358
+ * Compatibility entry for hand-authored runtime definitions.
359
+ * Compiler output uses createCompiledComponentWithFeatures so unused structural
360
+ * runtimes can be removed from production bundles.
253
361
  */
254
362
  declare function createCompiledComponent<Props>(definition: CompiledComponentDefinition<Props>): React.ComponentType<Props>;
255
363
 
256
- export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, createCompiledComponent };
364
+ export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeFeature, type CompilerRuntimeFeatureOwner, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayFilter, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArraySlice, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, mixedRangesRuntimeFeature };
@@ -2,6 +2,28 @@ import React from 'react';
2
2
 
3
3
  type CompilerStateUpdater = unknown | ((previous: unknown) => unknown);
4
4
  type CompilerRuntimeReactivity = "static" | "hybrid";
5
+ type CompilerKeyedCollectionKind = "set" | "map";
6
+ type CompilerKeyedCollectionMutation = "set-add" | "set-delete" | "map-set" | "map-delete";
7
+ /** @internal Records compiler-proven same-order Array.map metadata and returns the Array. */
8
+ declare function createCompilerKeyedMapUpdate(previous: unknown, value: unknown, changedIndices: readonly number[]): unknown;
9
+ /** @internal Records a compiler-proven immutable keyed-array append and returns the Array. */
10
+ declare function createCompilerKeyedArrayAppend(previous: unknown, value: unknown): unknown;
11
+ /** @internal Records a compiler-proven immutable keyed-array prepend and returns the Array. */
12
+ declare function createCompilerKeyedArrayPrepend(previous: unknown, value: unknown): unknown;
13
+ /** @internal Executes Array.filter while recording compiler-proven removal positions. */
14
+ declare function createCompilerKeyedArrayFilter(previous: unknown, method: unknown, predicate: unknown): unknown;
15
+ /** @internal Executes a compiler-proven native Array.slice and records its retained interval. */
16
+ declare function createCompilerKeyedArraySlice(previous: unknown, method: unknown, ...args: readonly number[]): unknown;
17
+ /** @internal Records a compiler-proven retained tail followed by incoming keyed rows. */
18
+ declare function createCompilerKeyedArrayRollingWindow(previous: unknown, retained: unknown, value: unknown): unknown;
19
+ /** @internal Executes a native known-position insert or replacement and records its position. */
20
+ declare function createCompilerKeyedArrayPositionUpdate(previous: unknown, method: unknown, kind: "insert" | "replace", position: number, ...args: readonly unknown[]): unknown;
21
+ /** @internal Executes a native reverse and records its exact keyed-row permutation. */
22
+ declare function createCompilerKeyedArrayReorder(previous: unknown, method: unknown): unknown;
23
+ /** @internal Preserves a proven native collection mutation while recording its executed key. */
24
+ declare function applyCompilerKeyedCollectionMutation(collection: unknown, method: unknown, operation: CompilerKeyedCollectionMutation, key: unknown, value?: unknown): unknown;
25
+ /** @internal Connects compiler-owned immutable Set/Map mutations to their committed source. */
26
+ declare function createCompilerKeyedCollectionUpdate(previous: unknown, value: unknown, kind: CompilerKeyedCollectionKind): unknown;
5
27
  interface CompilerCell {
6
28
  get(): unknown;
7
29
  set(next: CompilerStateUpdater): void;
@@ -165,14 +187,41 @@ interface CompilerKeyedRowBinding {
165
187
  name?: string;
166
188
  /** Component state cells read by this binding, when emitted by the compiler. */
167
189
  dependencies?: readonly number[];
190
+ /** A compiler-proven primitive value compared strictly with this row's key. */
191
+ identityTarget?: {
192
+ dependency: number;
193
+ read(): unknown;
194
+ };
195
+ /** A compiler-proven native Set whose members are compared with this row's key. */
196
+ membershipTarget?: {
197
+ dependency: number;
198
+ read(): unknown;
199
+ };
200
+ /** A compiler-proven native Map whose values are read with this row's key. */
201
+ mapLookupTarget?: {
202
+ dependency: number;
203
+ read(): unknown;
204
+ };
168
205
  read(item: unknown, index: number): unknown;
169
206
  }
170
207
  interface CompilerKeyedRowsBlockProps {
171
208
  id: number;
172
209
  render(event: (item: unknown, index: number, eventId: number) => React.EventHandler<React.SyntheticEvent>, conditional: (item: unknown, index: number, conditionalId: number, render: (item: unknown, index: number) => React.ReactNode) => React.ReactNode): React.ReactElement;
173
210
  items(): Iterable<unknown> | null | undefined;
211
+ /** Complete component-state dependencies used anywhere inside this boundary. */
212
+ dependencies?: readonly number[];
174
213
  /** State cells that can change the row collection or its key projection. */
175
214
  structureDependencies?: readonly number[];
215
+ /** Direct state cell supplying items, eligible for compiler-emitted update hints. */
216
+ collectionDependency?: number;
217
+ /** Compiler proof that shifted row indexes are not observed by this boundary. */
218
+ filterIndexIndependent?: boolean;
219
+ /** Compiler proof that prepending cannot expose shifted indexes to existing rows. */
220
+ prependIndexIndependent?: boolean;
221
+ /** Compiler proof that a known-position insert cannot expose shifted row indexes. */
222
+ positionIndexIndependent?: boolean;
223
+ /** Compiler proof that reordering cannot expose changed row indexes. */
224
+ reorderIndexIndependent?: boolean;
176
225
  rowKey(item: unknown, index: number): React.Key;
177
226
  create(item: unknown, index: number): CompilerKeyedRowElement;
178
227
  bindings: readonly CompilerKeyedRowBinding[];
@@ -244,13 +293,72 @@ interface CompiledComponentDefinition<Props> {
244
293
  render(props: Props, state: readonly CompilerCell[], blocks: CompilerBlockRuntime): React.ReactElement;
245
294
  bindings: readonly CompilerBinding<Props>[];
246
295
  }
296
+ type CompilerBlockRefresh = (afterCommit?: () => void, dirtyState?: ReadonlySet<number>) => void;
297
+ interface CompilerRuntimeFeatureOwner {
298
+ setRoot(id: number, root: Element | null): void;
299
+ subscribe(id: number, refresh: CompilerBlockRefresh): () => void;
300
+ }
301
+ interface CompilerRuntimeFeature {
302
+ /** Stable identity used by Fast Refresh compatibility checks. */
303
+ name: string;
304
+ create(owner: CompilerRuntimeFeatureOwner): Partial<CompilerBlockRuntime>;
305
+ }
306
+ declare const conditionalRuntimeFeature: CompilerRuntimeFeature;
307
+ declare const hostConditionalRuntimeFeature: CompilerRuntimeFeature;
308
+ declare const conditionalRangesRuntimeFeature: CompilerRuntimeFeature;
309
+ declare const keyedListRuntimeFeature: CompilerRuntimeFeature;
310
+ declare const keyedRowsRuntimeFeature: CompilerRuntimeFeature;
311
+ declare const keyedRowsHintedRuntimeFeature: CompilerRuntimeFeature;
312
+ declare const keyedRowsPositionHintedRuntimeFeature: CompilerRuntimeFeature;
313
+ declare const keyedRowsReorderHintedRuntimeFeature: CompilerRuntimeFeature;
314
+ declare const keyedRowsAllHintedRuntimeFeature: CompilerRuntimeFeature;
315
+ declare const keyedRowsEveryHintedRuntimeFeature: CompilerRuntimeFeature;
316
+ declare const keyedRowsFilterHintedRuntimeFeature: CompilerRuntimeFeature;
317
+ declare const keyedRowsPrependHintedRuntimeFeature: CompilerRuntimeFeature;
318
+ declare const keyedRowsFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
319
+ declare const keyedRowsConditionalRuntimeFeature: CompilerRuntimeFeature;
320
+ declare const keyedRowsConditionalHintedRuntimeFeature: CompilerRuntimeFeature;
321
+ declare const keyedRowsConditionalPositionHintedRuntimeFeature: CompilerRuntimeFeature;
322
+ declare const keyedRowsConditionalReorderHintedRuntimeFeature: CompilerRuntimeFeature;
323
+ declare const keyedRowsConditionalAllHintedRuntimeFeature: CompilerRuntimeFeature;
324
+ declare const keyedRowsConditionalEveryHintedRuntimeFeature: CompilerRuntimeFeature;
325
+ declare const keyedRowsConditionalFilterHintedRuntimeFeature: CompilerRuntimeFeature;
326
+ declare const keyedRowsConditionalPrependHintedRuntimeFeature: CompilerRuntimeFeature;
327
+ declare const keyedRowsConditionalFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
328
+ declare const keyedRowsHostRuntimeFeature: CompilerRuntimeFeature;
329
+ declare const keyedRowsHostHintedRuntimeFeature: CompilerRuntimeFeature;
330
+ declare const keyedRowsHostPositionHintedRuntimeFeature: CompilerRuntimeFeature;
331
+ declare const keyedRowsHostReorderHintedRuntimeFeature: CompilerRuntimeFeature;
332
+ declare const keyedRowsHostAllHintedRuntimeFeature: CompilerRuntimeFeature;
333
+ declare const keyedRowsHostEveryHintedRuntimeFeature: CompilerRuntimeFeature;
334
+ declare const keyedRowsHostFilterHintedRuntimeFeature: CompilerRuntimeFeature;
335
+ declare const keyedRowsHostPrependHintedRuntimeFeature: CompilerRuntimeFeature;
336
+ declare const keyedRowsHostFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
337
+ declare const keyedRowsCompleteRuntimeFeature: CompilerRuntimeFeature;
338
+ declare const keyedRowsCompleteHintedRuntimeFeature: CompilerRuntimeFeature;
339
+ declare const keyedRowsCompletePositionHintedRuntimeFeature: CompilerRuntimeFeature;
340
+ declare const keyedRowsCompleteReorderHintedRuntimeFeature: CompilerRuntimeFeature;
341
+ declare const keyedRowsCompleteAllHintedRuntimeFeature: CompilerRuntimeFeature;
342
+ declare const keyedRowsCompleteEveryHintedRuntimeFeature: CompilerRuntimeFeature;
343
+ declare const keyedRowsCompleteFilterHintedRuntimeFeature: CompilerRuntimeFeature;
344
+ declare const keyedRowsCompletePrependHintedRuntimeFeature: CompilerRuntimeFeature;
345
+ declare const keyedRowsCompleteFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
346
+ declare const keyedRangesRuntimeFeature: CompilerRuntimeFeature;
347
+ declare const mixedRangesRuntimeFeature: CompilerRuntimeFeature;
348
+ declare const componentRuntimeFeature: CompilerRuntimeFeature;
247
349
  /**
248
- * Runtime target emitted by the AOT transform.
350
+ * Tree-shakable runtime target emitted by the AOT transform.
249
351
  *
250
352
  * React owns initial placement, SSR, hydration, props, and event semantics.
251
- * Compiler cells own local updates and precomputed DOM paths. A proven host-only
252
- * keyed container may transfer its child-row ownership after mount.
353
+ * Compiler cells own local updates and precomputed DOM paths. Structural
354
+ * helpers are installed only when the compiler emitted that boundary kind.
355
+ */
356
+ declare function createCompiledComponentWithFeatures<Props>(definition: CompiledComponentDefinition<Props>, runtimeFeatures: readonly CompilerRuntimeFeature[]): React.ComponentType<Props>;
357
+ /**
358
+ * Compatibility entry for hand-authored runtime definitions.
359
+ * Compiler output uses createCompiledComponentWithFeatures so unused structural
360
+ * runtimes can be removed from production bundles.
253
361
  */
254
362
  declare function createCompiledComponent<Props>(definition: CompiledComponentDefinition<Props>): React.ComponentType<Props>;
255
363
 
256
- export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, createCompiledComponent };
364
+ export { type CompiledComponentDefinition, type CompilerAttributeBinding, type CompilerBinding, type CompilerBlockRuntime, type CompilerCell, type CompilerComponentBlockProps, type CompilerConditionalBlockBinding, type CompilerConditionalBlockProps, type CompilerConditionalRange, type CompilerConditionalRangesBlockProps, type CompilerHostBlock, type CompilerHostConditionalBinding, type CompilerHostConditionalBlockProps, type CompilerHostConditionalBranch, type CompilerHostConditionalRanges, type CompilerHostElement, type CompilerHostKeyedRanges, type CompilerHostMixedRanges, type CompilerKeyedListBlockProps, type CompilerKeyedRange, type CompilerKeyedRangesBlockProps, type CompilerKeyedRowBinding, type CompilerKeyedRowConditional, type CompilerKeyedRowConditionalBranch, type CompilerKeyedRowElement, type CompilerKeyedRowEvent, type CompilerKeyedRowsBlockProps, type CompilerMixedRange, type CompilerMixedRangesBlockProps, type CompilerRuntimeFeature, type CompilerRuntimeFeatureOwner, type CompilerRuntimeReactivity, type CompilerStateUpdater, type CompilerStaticRangeBinding, type CompilerStyleBinding, type CompilerTextBinding, applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayFilter, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArraySlice, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, mixedRangesRuntimeFeature };