virtual-scroller 1.9.1 → 1.10.1
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 +16 -0
- package/README.md +71 -17
- package/bundle/virtual-scroller-dom.js +1 -1
- package/bundle/virtual-scroller-dom.js.map +1 -1
- package/bundle/virtual-scroller-react.js +1 -1
- package/bundle/virtual-scroller-react.js.map +1 -1
- package/bundle/virtual-scroller.js +1 -1
- package/bundle/virtual-scroller.js.map +1 -1
- package/commonjs/DOM/ScrollableContainer.js +13 -1
- package/commonjs/DOM/ScrollableContainer.js.map +1 -1
- package/commonjs/Layout.js +65 -10
- package/commonjs/Layout.js.map +1 -1
- package/commonjs/ScrollableContainerNotReadyError.js +51 -0
- package/commonjs/ScrollableContainerNotReadyError.js.map +1 -0
- package/commonjs/VirtualScroller.constructor.js +22 -7
- package/commonjs/VirtualScroller.constructor.js.map +1 -1
- package/commonjs/VirtualScroller.js +1 -1
- package/commonjs/VirtualScroller.js.map +1 -1
- package/commonjs/VirtualScroller.state.js +20 -6
- package/commonjs/VirtualScroller.state.js.map +1 -1
- package/commonjs/react/VirtualScroller.js +21 -3
- package/commonjs/react/VirtualScroller.js.map +1 -1
- package/commonjs/react/useHandleItemsChange.js.map +1 -1
- package/commonjs/react/useVirtualScroller.js +5 -0
- package/commonjs/react/useVirtualScroller.js.map +1 -1
- package/dom/index.d.ts +1 -1
- package/index.d.ts +5 -4
- package/modules/DOM/ScrollableContainer.js +11 -1
- package/modules/DOM/ScrollableContainer.js.map +1 -1
- package/modules/Layout.js +62 -10
- package/modules/Layout.js.map +1 -1
- package/modules/ScrollableContainerNotReadyError.js +44 -0
- package/modules/ScrollableContainerNotReadyError.js.map +1 -0
- package/modules/VirtualScroller.constructor.js +22 -7
- package/modules/VirtualScroller.constructor.js.map +1 -1
- package/modules/VirtualScroller.js +1 -1
- package/modules/VirtualScroller.js.map +1 -1
- package/modules/VirtualScroller.state.js +20 -6
- package/modules/VirtualScroller.state.js.map +1 -1
- package/modules/react/VirtualScroller.js +21 -3
- package/modules/react/VirtualScroller.js.map +1 -1
- package/modules/react/useHandleItemsChange.js +1 -1
- package/modules/react/useHandleItemsChange.js.map +1 -1
- package/modules/react/useVirtualScroller.js +5 -0
- package/modules/react/useVirtualScroller.js.map +1 -1
- package/package.json +1 -1
- package/react/index.d.ts +53 -15
- package/source/DOM/ScrollableContainer.js +8 -0
- package/source/Layout.js +57 -9
- package/source/ScrollableContainerNotReadyError.js +5 -0
- package/source/VirtualScroller.constructor.js +17 -6
- package/source/VirtualScroller.js +1 -1
- package/source/VirtualScroller.state.js +19 -4
- package/source/react/VirtualScroller.js +20 -1
- package/source/react/useHandleItemsChange.js +1 -1
- package/source/react/useVirtualScroller.js +6 -0
- package/website/index-bypass.html +2 -2
- package/website/index-grid.html +2 -2
- package/website/index-scrollableContainer.html +2 -2
- package/website/index.html +2 -2
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
function Message(props) {
|
|
138
|
-
const {
|
|
138
|
+
const { item: message } = props
|
|
139
139
|
const {
|
|
140
140
|
username,
|
|
141
141
|
date,
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
Message.propTypes = {
|
|
160
|
-
|
|
160
|
+
item: message.isRequired
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
class Feed extends React.Component {
|
package/website/index-grid.html
CHANGED
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
function Message(props) {
|
|
159
|
-
const {
|
|
159
|
+
const { item: message } = props
|
|
160
160
|
const {
|
|
161
161
|
username,
|
|
162
162
|
date,
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
Message.propTypes = {
|
|
181
|
-
|
|
181
|
+
item: message.isRequired
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
class Feed extends React.Component {
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
function Message(props) {
|
|
151
|
-
const {
|
|
151
|
+
const { item: message } = props
|
|
152
152
|
const {
|
|
153
153
|
username,
|
|
154
154
|
date,
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
Message.propTypes = {
|
|
173
|
-
|
|
173
|
+
item: message.isRequired
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
class Feed extends React.Component {
|
package/website/index.html
CHANGED
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
function Message(props) {
|
|
127
|
-
const {
|
|
127
|
+
const { item: message } = props
|
|
128
128
|
const {
|
|
129
129
|
username,
|
|
130
130
|
date,
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
Message.propTypes = {
|
|
149
|
-
|
|
149
|
+
item: message.isRequired
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
class Feed extends React.Component {
|