@ankhorage/zora 25.9.1 → 25.9.2
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +12 -3
- package/dist/capabilities/index.js.map +6 -5
- package/dist/features/list/adapters/inbound/FlatList.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/FlatList.js +2 -1
- package/dist/features/list/adapters/inbound/FlatList.js.map +1 -1
- package/dist/features/list/adapters/inbound/SectionList.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/SectionList.js +2 -1
- package/dist/features/list/adapters/inbound/SectionList.js.map +1 -1
- package/dist/features/list/constants/virtualization.d.ts +6 -0
- package/dist/features/list/constants/virtualization.d.ts.map +1 -0
- package/dist/features/list/constants/virtualization.js +6 -0
- package/dist/features/list/constants/virtualization.js.map +1 -0
- package/dist/features/list/flatListMeta.d.ts +4 -0
- package/dist/features/list/flatListMeta.d.ts.map +1 -1
- package/dist/features/list/flatListMeta.js +2 -1
- package/dist/features/list/flatListMeta.js.map +1 -1
- package/dist/features/list/sectionListMeta.d.ts +2 -0
- package/dist/features/list/sectionListMeta.d.ts.map +1 -1
- package/dist/features/list/sectionListMeta.js +4 -1
- package/dist/features/list/sectionListMeta.js.map +1 -1
- package/package.json +1 -1
- package/src/features/list/adapters/inbound/FlatList.tsx +3 -2
- package/src/features/list/adapters/inbound/SectionList.tsx +3 -2
- package/src/features/list/adapters/inbound/virtualizedLists.test.tsx +90 -0
- package/src/features/list/constants/virtualization.ts +5 -0
- package/src/features/list/flatListMeta.ts +2 -1
- package/src/features/list/sectionListMeta.ts +4 -1
- package/src/features/list/virtualizationDefaults.test.ts +24 -0
- package/web-dist/chunks/{Accordion-wf60fekp.js → Accordion-rkg1y7x3.js} +10 -4
- package/web-dist/chunks/{Accordion-nsamv0p0.js → Accordion-xt8vafkn.js} +1 -1
- package/web-dist/components/data-table/DataTable.js +2 -2
- package/web-dist/components/flat-list/FlatList.js +1 -1
- package/web-dist/components/list/List.js +1 -1
- package/web-dist/components/list-item/ListItem.js +1 -1
- package/web-dist/components/list-section/ListSection.js +1 -1
- package/web-dist/components/section-list/SectionList.js +1 -1
- package/web-dist/components/skeleton/Skeleton.js +2 -2
- package/web-dist/components/skeleton-card/SkeletonCard.js +2 -2
- package/web-dist/components/skeleton-list/SkeletonList.js +2 -2
- package/web-dist/components/skeleton-text/SkeletonText.js +2 -2
- package/web-dist/components/tree-item/TreeItem.js +1 -1
- package/web-dist/manifest.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 25.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 49b8fb1: Apply explicit, overrideable native virtualization and pagination defaults to FlatList and SectionList, and publish the same defaults in their authoring blueprints.
|
|
8
|
+
|
|
3
9
|
## 25.9.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/zora
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
|
|
9
9
|
|
|
@@ -4029,12 +4029,18 @@ var viewMeta = {
|
|
|
4029
4029
|
}
|
|
4030
4030
|
};
|
|
4031
4031
|
|
|
4032
|
+
// src/features/list/constants/virtualization.ts
|
|
4033
|
+
var LIST_VIRTUALIZATION_DEFAULTS = {
|
|
4034
|
+
maxToRenderPerBatch: 10,
|
|
4035
|
+
onEndReachedThreshold: 2
|
|
4036
|
+
};
|
|
4037
|
+
|
|
4032
4038
|
// src/features/list/flatListMeta.ts
|
|
4033
4039
|
var flatListMeta = {
|
|
4034
4040
|
name: "FlatList",
|
|
4035
4041
|
category: "layout",
|
|
4036
4042
|
directManifestNode: true,
|
|
4037
|
-
blueprint: { label: "Flat list" },
|
|
4043
|
+
blueprint: { label: "Flat list", defaultProps: LIST_VIRTUALIZATION_DEFAULTS },
|
|
4038
4044
|
allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
|
|
4039
4045
|
description: "Virtualized children. Put node.repeat on this list for keyed data and item bindings; bind selection on the child Button/Card press event. Bound the list viewport and avoid nesting in a same-direction ScrollView.",
|
|
4040
4046
|
events: {
|
|
@@ -4108,7 +4114,10 @@ var listSectionMeta = {
|
|
|
4108
4114
|
var sectionListMeta = {
|
|
4109
4115
|
...flatListMeta,
|
|
4110
4116
|
name: "SectionList",
|
|
4111
|
-
blueprint: {
|
|
4117
|
+
blueprint: {
|
|
4118
|
+
label: "Section list",
|
|
4119
|
+
defaultProps: { ...flatListMeta.blueprint.defaultProps, sections: [] }
|
|
4120
|
+
},
|
|
4112
4121
|
description: "Virtualized sections of ordered children. Section counts must cover every child exactly once.",
|
|
4113
4122
|
events: {
|
|
4114
4123
|
visibleItemsChange: {
|
|
@@ -6154,4 +6163,4 @@ export {
|
|
|
6154
6163
|
CAPABILITIES
|
|
6155
6164
|
};
|
|
6156
6165
|
|
|
6157
|
-
//# debugId=
|
|
6166
|
+
//# debugId=F77F051A44832D0464756E2164756E21
|