@farm.js/react 0.1.0-beta.24 → 0.1.0-beta.26
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/README.md +13 -0
- package/dist/compiler-runtime.cjs +90 -35
- package/dist/compiler-runtime.cjs.map +1 -1
- package/dist/compiler-runtime.d.mts +3 -1
- package/dist/compiler-runtime.d.ts +3 -1
- package/dist/compiler-runtime.mjs +89 -36
- package/dist/compiler-runtime.mjs.map +1 -1
- package/dist/vite.cjs +8 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +8 -1
- package/dist/vite.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -372,6 +372,7 @@ declare const keyedRowsEveryHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
|
372
372
|
declare const keyedRowsBatchEveryHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
373
373
|
declare const keyedRowsWindowEveryHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
374
374
|
declare const keyedRowsFilterHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
375
|
+
declare const keyedRowsFilterOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
375
376
|
declare const keyedRowsIdentityFilterHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
376
377
|
declare const keyedRowsIdentityFilterOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
377
378
|
declare const keyedRowsStructuralAppendHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
@@ -379,6 +380,7 @@ declare const keyedRowsStructuralAppendMapHintedRuntimeFeature: CompilerRuntimeF
|
|
|
379
380
|
declare const keyedRowsStructuralPrependHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
380
381
|
declare const keyedRowsStructuralPrependMapHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
381
382
|
declare const keyedRowsPrependHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
383
|
+
declare const keyedRowsPrependOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
382
384
|
declare const keyedRowsFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
383
385
|
declare const keyedRowsConditionalRuntimeFeature: CompilerRuntimeFeature;
|
|
384
386
|
declare const keyedRowsConditionalHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
@@ -452,4 +454,4 @@ declare function createCompiledComponentWithFeatures<Props>(definition: Compiled
|
|
|
452
454
|
*/
|
|
453
455
|
declare function createCompiledComponent<Props>(definition: CompiledComponentDefinition<Props>): React.ComponentType<Props>;
|
|
454
456
|
|
|
455
|
-
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, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
457
|
+
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, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterOnlyRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsPrependOnlyRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
@@ -372,6 +372,7 @@ declare const keyedRowsEveryHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
|
372
372
|
declare const keyedRowsBatchEveryHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
373
373
|
declare const keyedRowsWindowEveryHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
374
374
|
declare const keyedRowsFilterHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
375
|
+
declare const keyedRowsFilterOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
375
376
|
declare const keyedRowsIdentityFilterHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
376
377
|
declare const keyedRowsIdentityFilterOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
377
378
|
declare const keyedRowsStructuralAppendHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
@@ -379,6 +380,7 @@ declare const keyedRowsStructuralAppendMapHintedRuntimeFeature: CompilerRuntimeF
|
|
|
379
380
|
declare const keyedRowsStructuralPrependHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
380
381
|
declare const keyedRowsStructuralPrependMapHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
381
382
|
declare const keyedRowsPrependHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
383
|
+
declare const keyedRowsPrependOnlyRuntimeFeature: CompilerRuntimeFeature;
|
|
382
384
|
declare const keyedRowsFilterPrependHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
383
385
|
declare const keyedRowsConditionalRuntimeFeature: CompilerRuntimeFeature;
|
|
384
386
|
declare const keyedRowsConditionalHintedRuntimeFeature: CompilerRuntimeFeature;
|
|
@@ -452,4 +454,4 @@ declare function createCompiledComponentWithFeatures<Props>(definition: Compiled
|
|
|
452
454
|
*/
|
|
453
455
|
declare function createCompiledComponent<Props>(definition: CompiledComponentDefinition<Props>): React.ComponentType<Props>;
|
|
454
456
|
|
|
455
|
-
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, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
457
|
+
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, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterOnlyRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsPrependOnlyRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
@@ -171,7 +171,8 @@ function compilerKeyedArrayFilterSurvivorsFromUpdate(update, sourceToken, expect
|
|
|
171
171
|
if (current.sourceToken !== sourceToken) return void 0;
|
|
172
172
|
updates.push(current);
|
|
173
173
|
}
|
|
174
|
-
let survivors = Array
|
|
174
|
+
let survivors = new Array(expectedLength);
|
|
175
|
+
for (let index = 0; index < expectedLength; index += 1) survivors[index] = index;
|
|
175
176
|
let keysStable = true;
|
|
176
177
|
for (let updateIndex = updates.length - 1; updateIndex >= 0; updateIndex -= 1) {
|
|
177
178
|
const current = updates[updateIndex];
|
|
@@ -2617,18 +2618,21 @@ function commitKeyedRowBinding(binding, instance, bindingIndex, value, target) {
|
|
|
2617
2618
|
instance.values[bindingIndex] = value;
|
|
2618
2619
|
if (!target) return;
|
|
2619
2620
|
if (binding.kind === "text") {
|
|
2620
|
-
|
|
2621
|
-
if (value && text && text === target.lastChild && text.nodeType === 3) {
|
|
2622
|
-
text.data = value;
|
|
2623
|
-
} else {
|
|
2624
|
-
target.textContent = value;
|
|
2625
|
-
}
|
|
2621
|
+
updateTextContent(target, value);
|
|
2626
2622
|
} else if (binding.kind === "style" && binding.name) {
|
|
2627
2623
|
updateStyle(target, binding.name, value);
|
|
2628
2624
|
} else if (binding.kind === "attribute" && binding.name) {
|
|
2629
2625
|
updateAttribute(target, binding.name, value);
|
|
2630
2626
|
}
|
|
2631
2627
|
}
|
|
2628
|
+
function updateTextContent(target, value) {
|
|
2629
|
+
const text = target.firstChild;
|
|
2630
|
+
if (value && text && text === target.lastChild && text.nodeType === 3) {
|
|
2631
|
+
text.data = value;
|
|
2632
|
+
} else {
|
|
2633
|
+
target.textContent = value;
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2632
2636
|
function prepareKeyedRowBindingUpdate(props, instance, item, index, bindingIndex) {
|
|
2633
2637
|
const binding = props.bindings[bindingIndex];
|
|
2634
2638
|
const rawValue = binding.read(item, index);
|
|
@@ -2639,17 +2643,34 @@ function prepareKeyedRowBindingUpdate(props, instance, item, index, bindingIndex
|
|
|
2639
2643
|
return [bindingIndex, target, value];
|
|
2640
2644
|
}
|
|
2641
2645
|
function prepareKeyedRowBindingUpdates(props, instance, item, index) {
|
|
2646
|
+
let first;
|
|
2642
2647
|
let updates;
|
|
2643
2648
|
for (let bindingIndex = 0; bindingIndex < props.bindings.length; bindingIndex += 1) {
|
|
2644
2649
|
const update = prepareKeyedRowBindingUpdate(props, instance, item, index, bindingIndex);
|
|
2645
2650
|
if (update === void 0) return void 0;
|
|
2646
|
-
if (update)
|
|
2651
|
+
if (update) {
|
|
2652
|
+
if (updates) updates.push(update);
|
|
2653
|
+
else if (first) {
|
|
2654
|
+
updates = [];
|
|
2655
|
+
updates.push(first);
|
|
2656
|
+
updates.push(update);
|
|
2657
|
+
} else first = update;
|
|
2658
|
+
}
|
|
2647
2659
|
}
|
|
2648
|
-
return updates || NO_KEYED_ROW_BINDING_UPDATES;
|
|
2660
|
+
return updates || first || NO_KEYED_ROW_BINDING_UPDATES;
|
|
2649
2661
|
}
|
|
2650
2662
|
var NO_KEYED_ROW_BINDING_UPDATES = [];
|
|
2651
2663
|
function applyPreparedKeyedRowBindingUpdates(props, instance, updates) {
|
|
2652
|
-
|
|
2664
|
+
if (typeof updates[0] === "number") {
|
|
2665
|
+
const [bindingIndex, target, value] = updates;
|
|
2666
|
+
commitKeyedRowBinding(props.bindings[bindingIndex], instance, bindingIndex, value, target);
|
|
2667
|
+
return;
|
|
2668
|
+
}
|
|
2669
|
+
for (const [
|
|
2670
|
+
bindingIndex,
|
|
2671
|
+
target,
|
|
2672
|
+
value
|
|
2673
|
+
] of updates) {
|
|
2653
2674
|
commitKeyedRowBinding(props.bindings[bindingIndex], instance, bindingIndex, value, target);
|
|
2654
2675
|
}
|
|
2655
2676
|
}
|
|
@@ -4440,6 +4461,12 @@ var keyedPrependUpdateRuntime = {
|
|
|
4440
4461
|
...keyedUpdateRuntime,
|
|
4441
4462
|
prepend: reconcileCompilerKeyedArrayPrepend
|
|
4442
4463
|
};
|
|
4464
|
+
var keyedPrependOnlyUpdateRuntime = {
|
|
4465
|
+
append: () => void 0,
|
|
4466
|
+
commit: commitCompilerKeyedCollection,
|
|
4467
|
+
reconcile: () => void 0,
|
|
4468
|
+
prepend: reconcileCompilerKeyedArrayPrepend
|
|
4469
|
+
};
|
|
4443
4470
|
var keyedFilterPrependUpdateRuntime = {
|
|
4444
4471
|
...keyedFilterUpdateRuntime,
|
|
4445
4472
|
prepend: reconcileCompilerKeyedArrayPrepend
|
|
@@ -7646,6 +7673,14 @@ var keyedRowsFilterHintedRuntimeFeature = {
|
|
|
7646
7673
|
})
|
|
7647
7674
|
})
|
|
7648
7675
|
};
|
|
7676
|
+
var keyedRowsFilterOnlyRuntimeFeature = {
|
|
7677
|
+
name: "keyed-rows:filter-only",
|
|
7678
|
+
create: (owner) => ({
|
|
7679
|
+
KeyedRows: createKeyedRowsBlockComponentCore(owner, {
|
|
7680
|
+
keyedUpdates: keyedFilterOnlyUpdateRuntime
|
|
7681
|
+
})
|
|
7682
|
+
})
|
|
7683
|
+
};
|
|
7649
7684
|
var keyedRowsIdentityFilterHintedRuntimeFeature = {
|
|
7650
7685
|
name: "keyed-rows:identity-filter-hinted",
|
|
7651
7686
|
create: (owner) => ({
|
|
@@ -7704,6 +7739,14 @@ var keyedRowsPrependHintedRuntimeFeature = {
|
|
|
7704
7739
|
})
|
|
7705
7740
|
})
|
|
7706
7741
|
};
|
|
7742
|
+
var keyedRowsPrependOnlyRuntimeFeature = {
|
|
7743
|
+
name: "keyed-rows:prepend-only",
|
|
7744
|
+
create: (owner) => ({
|
|
7745
|
+
KeyedRows: createKeyedRowsBlockComponentCore(owner, {
|
|
7746
|
+
keyedUpdates: keyedPrependOnlyUpdateRuntime
|
|
7747
|
+
})
|
|
7748
|
+
})
|
|
7749
|
+
};
|
|
7707
7750
|
var keyedRowsFilterPrependHintedRuntimeFeature = {
|
|
7708
7751
|
name: "keyed-rows:filter-prepend-hinted",
|
|
7709
7752
|
create: (owner) => ({
|
|
@@ -8274,6 +8317,7 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8274
8317
|
this.trackedBindingsByDependency = [];
|
|
8275
8318
|
this.trackedDependenciesByBinding = /* @__PURE__ */ new Map();
|
|
8276
8319
|
this.bindingValues = /* @__PURE__ */ new Map();
|
|
8320
|
+
this.textNodes = /* @__PURE__ */ new Map();
|
|
8277
8321
|
this.activeBinding = null;
|
|
8278
8322
|
this.activeDependencies = null;
|
|
8279
8323
|
this.renderedDefinition = null;
|
|
@@ -8336,13 +8380,8 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8336
8380
|
}
|
|
8337
8381
|
this.blockRuntime = blockRuntime;
|
|
8338
8382
|
}
|
|
8339
|
-
usesHybridReactivity() {
|
|
8340
|
-
return definitionReference.current.reactivity === "hybrid";
|
|
8341
|
-
}
|
|
8342
8383
|
canReuseRenderedElement(currentDefinition, propValues) {
|
|
8343
|
-
return
|
|
8344
|
-
this.mounted && propValues && propValues.every(isCompilerPrimitive) && this.renderedDefinition === currentDefinition && this.renderedElement
|
|
8345
|
-
);
|
|
8384
|
+
return this.mounted && propValues !== null && propValues.every(isCompilerPrimitive) && this.renderedDefinition === currentDefinition;
|
|
8346
8385
|
}
|
|
8347
8386
|
renderCellsForProps(propValues) {
|
|
8348
8387
|
if (!propValues) return { cells: this.cells, commit: () => void 0 };
|
|
@@ -8364,7 +8403,7 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8364
8403
|
};
|
|
8365
8404
|
}
|
|
8366
8405
|
tracksBinding(binding) {
|
|
8367
|
-
return
|
|
8406
|
+
return definitionReference.current.reactivity === "hybrid" && binding.tracking === "dynamic";
|
|
8368
8407
|
}
|
|
8369
8408
|
ensureBindingIndex() {
|
|
8370
8409
|
const currentDefinition = definitionReference.current;
|
|
@@ -8426,7 +8465,7 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8426
8465
|
return binding.kind === "text" ? renderTextValue(value) : value;
|
|
8427
8466
|
}
|
|
8428
8467
|
primeHybridBindings() {
|
|
8429
|
-
if (
|
|
8468
|
+
if (definitionReference.current.reactivity !== "hybrid") return;
|
|
8430
8469
|
for (const binding of definitionReference.current.bindings) {
|
|
8431
8470
|
if (binding.kind === "block") continue;
|
|
8432
8471
|
if (!this.tracksBinding(binding)) continue;
|
|
@@ -8515,29 +8554,26 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8515
8554
|
for (const binding of this.staticBindingsByDependency[dependency] || []) {
|
|
8516
8555
|
affectedBindings.add(binding);
|
|
8517
8556
|
}
|
|
8518
|
-
if (
|
|
8557
|
+
if (definitionReference.current.reactivity === "hybrid") {
|
|
8519
8558
|
for (const binding of this.trackedBindingsByDependency[dependency] || []) {
|
|
8520
8559
|
affectedBindings.add(binding);
|
|
8521
8560
|
}
|
|
8522
8561
|
}
|
|
8523
8562
|
}
|
|
8524
|
-
const
|
|
8563
|
+
const blockRefreshes = [];
|
|
8564
|
+
for (const id of affectedBlockIds) {
|
|
8565
|
+
const binding = this.blockBindings.get(id);
|
|
8566
|
+
const refresh = this.blockRefreshListeners.get(id);
|
|
8567
|
+
if (!binding || !refresh) continue;
|
|
8525
8568
|
let parent = binding.parent;
|
|
8526
8569
|
while (parent !== void 0) {
|
|
8527
|
-
if (affectedBlockIds.has(parent) && this.blockRefreshListeners.has(parent))
|
|
8528
|
-
return true;
|
|
8529
|
-
}
|
|
8570
|
+
if (affectedBlockIds.has(parent) && this.blockRefreshListeners.has(parent)) break;
|
|
8530
8571
|
parent = this.blockBindings.get(parent)?.parent;
|
|
8531
8572
|
}
|
|
8532
|
-
|
|
8533
|
-
}
|
|
8534
|
-
const blockRefreshes = [...affectedBlockIds].map((id) => {
|
|
8535
|
-
const binding = this.blockBindings.get(id);
|
|
8536
|
-
const refresh = this.blockRefreshListeners.get(id);
|
|
8537
|
-
return binding && refresh && !hasAffectedMountedAncestor(binding) ? refresh : void 0;
|
|
8538
|
-
}).filter((refresh) => refresh !== void 0);
|
|
8573
|
+
if (parent === void 0) blockRefreshes.push(refresh);
|
|
8574
|
+
}
|
|
8539
8575
|
for (const binding of affectedBindings) {
|
|
8540
|
-
|
|
8576
|
+
this.applyBinding(binding);
|
|
8541
8577
|
}
|
|
8542
8578
|
let pendingBlockCommits = blockRefreshes.length;
|
|
8543
8579
|
for (const refresh of blockRefreshes) {
|
|
@@ -8563,7 +8599,12 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8563
8599
|
if (Object.is(this.bindingValues.get(binding), comparableValue)) return;
|
|
8564
8600
|
}
|
|
8565
8601
|
if (binding.kind === "text") {
|
|
8566
|
-
target
|
|
8602
|
+
if (!this.textNodes.has(target)) {
|
|
8603
|
+
this.textNodes.set(target, [...target.childNodes]);
|
|
8604
|
+
target.textContent = comparableValue;
|
|
8605
|
+
} else {
|
|
8606
|
+
updateTextContent(target, comparableValue);
|
|
8607
|
+
}
|
|
8567
8608
|
} else if (binding.kind === "style") {
|
|
8568
8609
|
updateStyle(target, binding.name, value);
|
|
8569
8610
|
} else {
|
|
@@ -8580,9 +8621,16 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8580
8621
|
getSnapshotBeforeUpdate() {
|
|
8581
8622
|
const currentDefinition = definitionReference.current;
|
|
8582
8623
|
const propValues = currentDefinition.readProps?.(this.props) || null;
|
|
8583
|
-
|
|
8624
|
+
if (this.canReuseRenderedElement(currentDefinition, propValues)) return true;
|
|
8625
|
+
this.textNodes.forEach((children, target) => {
|
|
8626
|
+
target.textContent = "";
|
|
8627
|
+
for (const child of children) target.appendChild(child);
|
|
8628
|
+
});
|
|
8629
|
+
this.textNodes.clear();
|
|
8630
|
+
this.bindingValues.clear();
|
|
8631
|
+
return false;
|
|
8584
8632
|
}
|
|
8585
|
-
componentDidUpdate(_previousProps, _previousState, reusedRenderedElement
|
|
8633
|
+
componentDidUpdate(_previousProps, _previousState, reusedRenderedElement) {
|
|
8586
8634
|
const propValues = definitionReference.current.readProps?.(this.props) || null;
|
|
8587
8635
|
if (propValues) {
|
|
8588
8636
|
if (reusedRenderedElement) this.captureInputSelection();
|
|
@@ -8597,12 +8645,16 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8597
8645
|
cell.flush();
|
|
8598
8646
|
}
|
|
8599
8647
|
}
|
|
8648
|
+
if (!reusedRenderedElement) {
|
|
8649
|
+
this.ensureBindingIndex();
|
|
8650
|
+
this.primeHybridBindings();
|
|
8651
|
+
}
|
|
8600
8652
|
this.flushBindingUpdates();
|
|
8601
8653
|
return;
|
|
8602
8654
|
}
|
|
8603
8655
|
this.ensureBindingIndex();
|
|
8604
8656
|
for (const binding of definitionReference.current.bindings) {
|
|
8605
|
-
|
|
8657
|
+
this.applyBinding(binding, true);
|
|
8606
8658
|
}
|
|
8607
8659
|
}
|
|
8608
8660
|
componentWillUnmount() {
|
|
@@ -8618,6 +8670,7 @@ function createCompiledComponentWithFeatures(definition, runtimeFeatures) {
|
|
|
8618
8670
|
this.trackedBindingsByDependency = [];
|
|
8619
8671
|
this.trackedDependenciesByBinding.clear();
|
|
8620
8672
|
this.bindingValues.clear();
|
|
8673
|
+
this.textNodes.clear();
|
|
8621
8674
|
this.activeBinding = null;
|
|
8622
8675
|
this.activeDependencies = null;
|
|
8623
8676
|
refreshListeners.delete(this.refreshDefinition);
|
|
@@ -8702,6 +8755,6 @@ function createCompiledComponent(definition) {
|
|
|
8702
8755
|
return createCompiledComponentWithFeatures(definition, COMPLETE_RUNTIME_FEATURES);
|
|
8703
8756
|
}
|
|
8704
8757
|
|
|
8705
|
-
export { applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
8758
|
+
export { applyCompilerKeyedCollectionMutation, componentRuntimeFeature, conditionalRangesRuntimeFeature, conditionalRuntimeFeature, createCompiledComponent, createCompiledComponentWithFeatures, createCompilerKeyedArrayAppend, createCompilerKeyedArrayBatchInsert, createCompilerKeyedArrayFilter, createCompilerKeyedArrayMapPipeline, createCompilerKeyedArrayMapReorder, createCompilerKeyedArrayMappedRollingWindow, createCompilerKeyedArrayMappedStructuralAppend, createCompilerKeyedArrayMappedStructuralPrepend, createCompilerKeyedArrayPositionUpdate, createCompilerKeyedArrayPrepend, createCompilerKeyedArrayQueuedMapPipeline, createCompilerKeyedArrayReorder, createCompilerKeyedArrayRollingWindow, createCompilerKeyedArrayRollingWindowMapPipeline, createCompilerKeyedArraySlice, createCompilerKeyedArraySort, createCompilerKeyedArrayStructuralAppend, createCompilerKeyedArrayStructuralAppendMapPipeline, createCompilerKeyedArrayStructuralPrepend, createCompilerKeyedArrayStructuralPrependMapPipeline, createCompilerKeyedArrayStructuralReorder, createCompilerKeyedArrayStructuralSort, createCompilerKeyedArrayWindowReplace, createCompilerKeyedCollectionUpdate, createCompilerKeyedMapUpdate, finalizeCompilerKeyedArrayMappedStructuralUpdate, hostConditionalRuntimeFeature, keyedListRuntimeFeature, keyedRangesRuntimeFeature, keyedRowsAllHintedRuntimeFeature, keyedRowsAppendOnlyRuntimeFeature, keyedRowsBatchEveryHintedRuntimeFeature, keyedRowsBatchPositionHintedRuntimeFeature, keyedRowsCompleteAllHintedRuntimeFeature, keyedRowsCompleteBatchEveryHintedRuntimeFeature, keyedRowsCompleteBatchPositionHintedRuntimeFeature, keyedRowsCompleteEveryHintedRuntimeFeature, keyedRowsCompleteFilterHintedRuntimeFeature, keyedRowsCompleteFilterPrependHintedRuntimeFeature, keyedRowsCompleteHintedRuntimeFeature, keyedRowsCompleteMappedRollingWindowHintedRuntimeFeature, keyedRowsCompletePositionHintedRuntimeFeature, keyedRowsCompletePrependHintedRuntimeFeature, keyedRowsCompleteReorderHintedRuntimeFeature, keyedRowsCompleteRuntimeFeature, keyedRowsCompleteStructuralAppendHintedRuntimeFeature, keyedRowsCompleteStructuralAppendMapHintedRuntimeFeature, keyedRowsCompleteStructuralPrependHintedRuntimeFeature, keyedRowsCompleteStructuralPrependMapHintedRuntimeFeature, keyedRowsCompleteWindowEveryHintedRuntimeFeature, keyedRowsCompleteWindowPositionHintedRuntimeFeature, keyedRowsConditionalAllHintedRuntimeFeature, keyedRowsConditionalBatchEveryHintedRuntimeFeature, keyedRowsConditionalBatchPositionHintedRuntimeFeature, keyedRowsConditionalEveryHintedRuntimeFeature, keyedRowsConditionalFilterHintedRuntimeFeature, keyedRowsConditionalFilterPrependHintedRuntimeFeature, keyedRowsConditionalHintedRuntimeFeature, keyedRowsConditionalMappedRollingWindowHintedRuntimeFeature, keyedRowsConditionalPositionHintedRuntimeFeature, keyedRowsConditionalPrependHintedRuntimeFeature, keyedRowsConditionalReorderHintedRuntimeFeature, keyedRowsConditionalRuntimeFeature, keyedRowsConditionalStructuralAppendHintedRuntimeFeature, keyedRowsConditionalStructuralAppendMapHintedRuntimeFeature, keyedRowsConditionalStructuralPrependHintedRuntimeFeature, keyedRowsConditionalStructuralPrependMapHintedRuntimeFeature, keyedRowsConditionalWindowEveryHintedRuntimeFeature, keyedRowsConditionalWindowPositionHintedRuntimeFeature, keyedRowsEveryHintedRuntimeFeature, keyedRowsFilterHintedRuntimeFeature, keyedRowsFilterOnlyRuntimeFeature, keyedRowsFilterPrependHintedRuntimeFeature, keyedRowsHintedRuntimeFeature, keyedRowsHostAllHintedRuntimeFeature, keyedRowsHostBatchEveryHintedRuntimeFeature, keyedRowsHostBatchPositionHintedRuntimeFeature, keyedRowsHostEveryHintedRuntimeFeature, keyedRowsHostFilterHintedRuntimeFeature, keyedRowsHostFilterPrependHintedRuntimeFeature, keyedRowsHostHintedRuntimeFeature, keyedRowsHostMappedRollingWindowHintedRuntimeFeature, keyedRowsHostPositionHintedRuntimeFeature, keyedRowsHostPrependHintedRuntimeFeature, keyedRowsHostReorderHintedRuntimeFeature, keyedRowsHostRuntimeFeature, keyedRowsHostStructuralAppendHintedRuntimeFeature, keyedRowsHostStructuralAppendMapHintedRuntimeFeature, keyedRowsHostStructuralPrependHintedRuntimeFeature, keyedRowsHostStructuralPrependMapHintedRuntimeFeature, keyedRowsHostWindowEveryHintedRuntimeFeature, keyedRowsHostWindowPositionHintedRuntimeFeature, keyedRowsIdentityFilterHintedRuntimeFeature, keyedRowsIdentityFilterOnlyRuntimeFeature, keyedRowsIdentityRuntimeFeature, keyedRowsMapLookupRuntimeFeature, keyedRowsMapReorderHintedRuntimeFeature, keyedRowsMappedRollingWindowHintedRuntimeFeature, keyedRowsMembershipRuntimeFeature, keyedRowsPlainRuntimeFeature, keyedRowsPositionHintedRuntimeFeature, keyedRowsPrependHintedRuntimeFeature, keyedRowsPrependOnlyRuntimeFeature, keyedRowsReorderHintedRuntimeFeature, keyedRowsRuntimeFeature, keyedRowsStructuralAppendHintedRuntimeFeature, keyedRowsStructuralAppendMapHintedRuntimeFeature, keyedRowsStructuralPrependHintedRuntimeFeature, keyedRowsStructuralPrependMapHintedRuntimeFeature, keyedRowsWindowEveryHintedRuntimeFeature, keyedRowsWindowPositionHintedRuntimeFeature, mixedRangesRuntimeFeature };
|
|
8706
8759
|
//# sourceMappingURL=compiler-runtime.mjs.map
|
|
8707
8760
|
//# sourceMappingURL=compiler-runtime.mjs.map
|