@symbiote-native/components 3.1.3 → 3.1.4
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/state/list-kinds.d.ts +22 -0
- package/build/state/list-kinds.js +25 -0
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export type { ITextInputProps, ITextInputHandle, ITextInputSelection, ITextInput
|
|
|
47
47
|
export { DEFAULT_WINDOW_SIZE, DEFAULT_INITIAL_NUM_TO_RENDER, DEFAULT_MAX_TO_RENDER_PER_BATCH, DEFAULT_UPDATE_CELLS_BATCHING_PERIOD, DEFAULT_VIEW_AREA_COVERAGE_PERCENT_THRESHOLD, FIRST_INDEX, EMPTY_OFFSET, NO_INDEX, NO_CONTENT_LENGTH_SENT, INVERTED_Y_STYLE, INVERTED_X_STYLE, readScrollOffset, readLayoutLength, readLayoutOffset, buildOffsets, computeWindow, throttleWindow, isCellViewable, offsetForIndex, averageMeasuredLength, averageMeasuredStride, highestMeasuredIndex, computeEndReached, computeStartReached, buildViewabilityPairs, computeViewableSet, diffViewable, maxMinimumViewTime, buildListPlan, computeMvcpAdjustment, resolveItemKey, indexOfItem, offsetForEnd, isSeparatorGapInRange, decideEdgeReached, resolveStickySectionHeaders, wrapFixedLayout, resolveAverageLength, } from './state/virtualized-list';
|
|
48
48
|
export type { IMvcpAction, IMvcpAdjustmentParams, IMvcpAdjustmentResult, ICellLayout, ISeparators, ISeparatorProps, IViewToken, IViewableItemsChangedInfo, IViewabilityConfig, IViewabilityConfigCallbackPair, IVirtualizedListHandle, IViewableSetParams, IListCellPlan, IListPlan, IListPlanParams, } from './state/virtualized-list';
|
|
49
49
|
export { reduceList, createInitialListState, listEffectSignature, } from './state/virtualized-list-reducer';
|
|
50
|
+
export { LIST_ACTION_KIND, LIST_EFFECT_KIND } from './state/list-kinds';
|
|
50
51
|
export type { IListState, IListMetrics, IListReducerInputs, IListAction, IListEffect, IListReduceResult, } from './state/virtualized-list-reducer';
|
|
51
52
|
export { subscribeListDiagnostics } from './state/virtualized-list-diagnostics';
|
|
52
53
|
export type { IListDiagnosticFrame, IListDiagnosticMove, } from './state/virtualized-list-diagnostics';
|
package/build/index.js
CHANGED
|
@@ -71,6 +71,7 @@ export { DEFAULT_WINDOW_SIZE, DEFAULT_INITIAL_NUM_TO_RENDER, DEFAULT_MAX_TO_REND
|
|
|
71
71
|
// after-commit effect skeleton (window recompute -> edge -> viewability -> initial-scroll -> MVCP)
|
|
72
72
|
// out of each adapter's reactive glue. The adapter maps events to actions and runs the effects.
|
|
73
73
|
export { reduceList, createInitialListState, listEffectSignature, } from './state/virtualized-list-reducer.js';
|
|
74
|
+
export { LIST_ACTION_KIND, LIST_EFFECT_KIND } from './state/list-kinds.js';
|
|
74
75
|
export { subscribeListDiagnostics } from './state/virtualized-list-diagnostics.js';
|
|
75
76
|
export { SINGLE_COLUMN, chunkIntoRows, rowKeyExtractor, expandRowToken, expandRowViewability, lastItemOfRow, firstItemOfRow, removeClippedSubviewsOrDefault, } from './state/flat-list.js';
|
|
76
77
|
export { flattenSections, unwrapEntryItem, sectionEntryKey, scrollLocationToFlatIndex, } from './state/section-list.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const LIST_ACTION_KIND: {
|
|
2
|
+
readonly scroll: "scroll";
|
|
3
|
+
readonly layout: "layout";
|
|
4
|
+
readonly measure: "measure";
|
|
5
|
+
readonly refreshMetrics: "refresh-metrics";
|
|
6
|
+
readonly batchTick: "batch-tick";
|
|
7
|
+
readonly recordInteraction: "record-interaction";
|
|
8
|
+
readonly viewableFired: "viewable-fired";
|
|
9
|
+
readonly commit: "commit";
|
|
10
|
+
readonly scrollToOffset: "scroll-to-offset";
|
|
11
|
+
readonly scrollToIndex: "scroll-to-index";
|
|
12
|
+
readonly scrollToItem: "scroll-to-item";
|
|
13
|
+
readonly scrollToEnd: "scroll-to-end";
|
|
14
|
+
};
|
|
15
|
+
export declare const LIST_EFFECT_KIND: {
|
|
16
|
+
readonly scrollTo: "scroll-to";
|
|
17
|
+
readonly fireEndReached: "fire-end-reached";
|
|
18
|
+
readonly fireStartReached: "fire-start-reached";
|
|
19
|
+
readonly fireViewable: "fire-viewable";
|
|
20
|
+
readonly scheduleRefill: "schedule-refill";
|
|
21
|
+
readonly fireScrollToIndexFailed: "fire-scroll-to-index-failed";
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Names for the `kind` discriminants of the list reducer's actions and effects, so an adapter
|
|
2
|
+
// compares against a constant instead of repeating the string. `satisfies` keeps each value a
|
|
3
|
+
// real member of the union, a renamed kind stops compiling here
|
|
4
|
+
export const LIST_ACTION_KIND = {
|
|
5
|
+
scroll: 'scroll',
|
|
6
|
+
layout: 'layout',
|
|
7
|
+
measure: 'measure',
|
|
8
|
+
refreshMetrics: 'refresh-metrics',
|
|
9
|
+
batchTick: 'batch-tick',
|
|
10
|
+
recordInteraction: 'record-interaction',
|
|
11
|
+
viewableFired: 'viewable-fired',
|
|
12
|
+
commit: 'commit',
|
|
13
|
+
scrollToOffset: 'scroll-to-offset',
|
|
14
|
+
scrollToIndex: 'scroll-to-index',
|
|
15
|
+
scrollToItem: 'scroll-to-item',
|
|
16
|
+
scrollToEnd: 'scroll-to-end',
|
|
17
|
+
};
|
|
18
|
+
export const LIST_EFFECT_KIND = {
|
|
19
|
+
scrollTo: 'scroll-to',
|
|
20
|
+
fireEndReached: 'fire-end-reached',
|
|
21
|
+
fireStartReached: 'fire-start-reached',
|
|
22
|
+
fireViewable: 'fire-viewable',
|
|
23
|
+
scheduleRefill: 'schedule-refill',
|
|
24
|
+
fireScrollToIndexFailed: 'fire-scroll-to-index-failed',
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Framework-agnostic component logic (state machines + render functions) for SymbioteNative — written once, inherited by every adapter (React, Vue, Angular, ...).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react-native": ">=0.86",
|
|
62
|
-
"@symbiote-native/engine": "^1.
|
|
62
|
+
"@symbiote-native/engine": "^1.5.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/node": "^26.0.0",
|
|
66
|
-
"@symbiote-native/engine": "1.
|
|
66
|
+
"@symbiote-native/engine": "1.5.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"typecheck": "tsc --build",
|