@shopify/flash-list 2.0.0-alpha.21 → 2.0.0-alpha.22

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.
Files changed (283) hide show
  1. package/dist/AnimatedFlashList.js +2 -2
  2. package/dist/AnimatedFlashList.js.map +1 -1
  3. package/dist/FlashList.d.ts +1 -167
  4. package/dist/FlashList.d.ts.map +1 -1
  5. package/dist/FlashList.js +3 -595
  6. package/dist/FlashList.js.map +1 -1
  7. package/dist/FlashListProps.d.ts +2 -63
  8. package/dist/FlashListProps.d.ts.map +1 -1
  9. package/dist/FlashListProps.js.map +1 -1
  10. package/dist/__tests__/ViewabilityHelper.test.js +3 -4
  11. package/dist/__tests__/ViewabilityHelper.test.js.map +1 -1
  12. package/dist/benchmark/JSFPSMonitor.d.ts.map +1 -1
  13. package/dist/benchmark/JSFPSMonitor.js +2 -1
  14. package/dist/benchmark/JSFPSMonitor.js.map +1 -1
  15. package/dist/benchmark/useBenchmark.d.ts +2 -4
  16. package/dist/benchmark/useBenchmark.d.ts.map +1 -1
  17. package/dist/benchmark/useBenchmark.js +12 -24
  18. package/dist/benchmark/useBenchmark.js.map +1 -1
  19. package/dist/benchmark/useFlatListBenchmark.d.ts.map +1 -1
  20. package/dist/benchmark/useFlatListBenchmark.js +2 -1
  21. package/dist/benchmark/useFlatListBenchmark.js.map +1 -1
  22. package/dist/errors/ErrorMessages.d.ts +16 -0
  23. package/dist/errors/ErrorMessages.d.ts.map +1 -0
  24. package/dist/errors/ErrorMessages.js +19 -0
  25. package/dist/errors/ErrorMessages.js.map +1 -0
  26. package/dist/errors/WarningMessages.d.ts +4 -0
  27. package/dist/errors/WarningMessages.d.ts.map +1 -0
  28. package/dist/errors/WarningMessages.js +7 -0
  29. package/dist/errors/WarningMessages.js.map +1 -0
  30. package/dist/index.d.ts +3 -9
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +7 -29
  33. package/dist/index.js.map +1 -1
  34. package/dist/isNewArch.d.ts +2 -0
  35. package/dist/isNewArch.d.ts.map +1 -0
  36. package/dist/isNewArch.js +25 -0
  37. package/dist/isNewArch.js.map +1 -0
  38. package/dist/native/config/PlatformHelper.android.d.ts +1 -22
  39. package/dist/native/config/PlatformHelper.android.d.ts.map +1 -1
  40. package/dist/native/config/PlatformHelper.android.js +1 -16
  41. package/dist/native/config/PlatformHelper.android.js.map +1 -1
  42. package/dist/native/config/PlatformHelper.d.ts +1 -22
  43. package/dist/native/config/PlatformHelper.d.ts.map +1 -1
  44. package/dist/native/config/PlatformHelper.ios.d.ts +1 -22
  45. package/dist/native/config/PlatformHelper.ios.d.ts.map +1 -1
  46. package/dist/native/config/PlatformHelper.ios.js +1 -15
  47. package/dist/native/config/PlatformHelper.ios.js.map +1 -1
  48. package/dist/native/config/PlatformHelper.js +1 -16
  49. package/dist/native/config/PlatformHelper.js.map +1 -1
  50. package/dist/native/config/PlatformHelper.web.d.ts +1 -23
  51. package/dist/native/config/PlatformHelper.web.d.ts.map +1 -1
  52. package/dist/native/config/PlatformHelper.web.js +1 -18
  53. package/dist/native/config/PlatformHelper.web.js.map +1 -1
  54. package/dist/recyclerview/RecyclerView.d.ts.map +1 -1
  55. package/dist/recyclerview/RecyclerView.js +5 -0
  56. package/dist/recyclerview/RecyclerView.js.map +1 -1
  57. package/dist/recyclerview/RecyclerViewManager.d.ts.map +1 -1
  58. package/dist/recyclerview/RecyclerViewManager.js +9 -8
  59. package/dist/recyclerview/RecyclerViewManager.js.map +1 -1
  60. package/dist/recyclerview/RecyclerViewProps.d.ts +1 -8
  61. package/dist/recyclerview/RecyclerViewProps.d.ts.map +1 -1
  62. package/dist/recyclerview/hooks/useRecyclerViewController.d.ts.map +1 -1
  63. package/dist/recyclerview/hooks/useRecyclerViewController.js +4 -0
  64. package/dist/recyclerview/hooks/useRecyclerViewController.js.map +1 -1
  65. package/dist/recyclerview/layout-managers/LayoutManager.d.ts.map +1 -1
  66. package/dist/recyclerview/layout-managers/LayoutManager.js +2 -1
  67. package/dist/recyclerview/layout-managers/LayoutManager.js.map +1 -1
  68. package/dist/recyclerview/viewability/ViewToken.d.ts.map +1 -0
  69. package/dist/recyclerview/viewability/ViewToken.js.map +1 -0
  70. package/dist/{viewability → recyclerview/viewability}/ViewabilityHelper.d.ts +2 -2
  71. package/dist/recyclerview/viewability/ViewabilityHelper.d.ts.map +1 -0
  72. package/dist/{viewability → recyclerview/viewability}/ViewabilityHelper.js +2 -4
  73. package/dist/{viewability → recyclerview/viewability}/ViewabilityHelper.js.map +1 -1
  74. package/dist/{viewability → recyclerview/viewability}/ViewabilityManager.d.ts +3 -3
  75. package/dist/recyclerview/viewability/ViewabilityManager.d.ts.map +1 -0
  76. package/dist/{viewability → recyclerview/viewability}/ViewabilityManager.js +16 -16
  77. package/dist/recyclerview/viewability/ViewabilityManager.js.map +1 -0
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +3 -14
  80. package/src/AnimatedFlashList.ts +2 -2
  81. package/src/FlashList.ts +1 -0
  82. package/src/FlashListProps.ts +3 -79
  83. package/src/__tests__/ViewabilityHelper.test.ts +13 -14
  84. package/src/benchmark/JSFPSMonitor.ts +3 -3
  85. package/src/benchmark/useBenchmark.ts +12 -40
  86. package/src/benchmark/useFlatListBenchmark.ts +3 -1
  87. package/src/errors/ErrorMessages.ts +26 -0
  88. package/src/errors/WarningMessages.ts +4 -0
  89. package/src/index.ts +7 -43
  90. package/src/isNewArch.ts +25 -0
  91. package/src/native/config/PlatformHelper.android.ts +1 -25
  92. package/src/native/config/PlatformHelper.ios.ts +1 -24
  93. package/src/native/config/PlatformHelper.ts +1 -25
  94. package/src/native/config/PlatformHelper.web.ts +1 -30
  95. package/src/recyclerview/RecyclerView.tsx +5 -0
  96. package/src/recyclerview/RecyclerViewManager.ts +9 -18
  97. package/src/recyclerview/RecyclerViewProps.ts +1 -11
  98. package/src/recyclerview/hooks/useRecyclerViewController.tsx +4 -0
  99. package/src/recyclerview/layout-managers/LayoutManager.ts +2 -1
  100. package/src/{viewability → recyclerview/viewability}/ViewabilityHelper.ts +8 -9
  101. package/src/{viewability → recyclerview/viewability}/ViewabilityManager.ts +18 -20
  102. package/RNFlashList.podspec +0 -37
  103. package/android/build.gradle +0 -89
  104. package/android/src/main/AndroidManifest.xml +0 -3
  105. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutShadow.kt +0 -105
  106. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt +0 -158
  107. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt +0 -70
  108. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/BlankAreaEvent.kt +0 -29
  109. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainer.java +0 -16
  110. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerImpl.kt +0 -16
  111. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt +0 -34
  112. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/FlashListPackage.kt +0 -19
  113. package/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java +0 -47
  114. package/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerInterface.java +0 -21
  115. package/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java +0 -32
  116. package/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerInterface.java +0 -16
  117. package/android/src/test/java/com/shopify/reactnative/flash_list/AutoLayoutShadowTest.kt +0 -147
  118. package/android/src/test/java/com/shopify/reactnative/flash_list/models/Rect.kt +0 -61
  119. package/android/src/test/java/com/shopify/reactnative/flash_list/models/TestCollection.kt +0 -6
  120. package/android/src/test/java/com/shopify/reactnative/flash_list/models/TestDataModel.kt +0 -8
  121. package/android/src/test/resources/LayoutTestData.json +0 -788
  122. package/dist/GridLayoutProviderWithProps.d.ts +0 -42
  123. package/dist/GridLayoutProviderWithProps.d.ts.map +0 -1
  124. package/dist/GridLayoutProviderWithProps.js +0 -114
  125. package/dist/GridLayoutProviderWithProps.js.map +0 -1
  126. package/dist/MasonryFlashList.d.ts +0 -51
  127. package/dist/MasonryFlashList.d.ts.map +0 -1
  128. package/dist/MasonryFlashList.js +0 -252
  129. package/dist/MasonryFlashList.js.map +0 -1
  130. package/dist/PureComponentWrapper.d.ts +0 -22
  131. package/dist/PureComponentWrapper.d.ts.map +0 -1
  132. package/dist/PureComponentWrapper.js +0 -37
  133. package/dist/PureComponentWrapper.js.map +0 -1
  134. package/dist/__tests__/ContentContainerUtils.test.d.ts +0 -2
  135. package/dist/__tests__/ContentContainerUtils.test.d.ts.map +0 -1
  136. package/dist/__tests__/ContentContainerUtils.test.js +0 -85
  137. package/dist/__tests__/ContentContainerUtils.test.js.map +0 -1
  138. package/dist/__tests__/FlashList.test.d.ts +0 -2
  139. package/dist/__tests__/FlashList.test.d.ts.map +0 -1
  140. package/dist/__tests__/FlashList.test.js +0 -902
  141. package/dist/__tests__/FlashList.test.js.map +0 -1
  142. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts +0 -2
  143. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts.map +0 -1
  144. package/dist/__tests__/GridLayoutProviderWithProps.test.js +0 -143
  145. package/dist/__tests__/GridLayoutProviderWithProps.test.js.map +0 -1
  146. package/dist/__tests__/MasonryFlashList.test.d.ts +0 -2
  147. package/dist/__tests__/MasonryFlashList.test.d.ts.map +0 -1
  148. package/dist/__tests__/MasonryFlashList.test.js +0 -254
  149. package/dist/__tests__/MasonryFlashList.test.js.map +0 -1
  150. package/dist/__tests__/PlatformHelper.web.test.d.ts +0 -2
  151. package/dist/__tests__/PlatformHelper.web.test.d.ts.map +0 -1
  152. package/dist/__tests__/PlatformHelper.web.test.js +0 -33
  153. package/dist/__tests__/PlatformHelper.web.test.js.map +0 -1
  154. package/dist/__tests__/helpers/mountFlashList.d.ts +0 -19
  155. package/dist/__tests__/helpers/mountFlashList.d.ts.map +0 -1
  156. package/dist/__tests__/helpers/mountFlashList.js +0 -44
  157. package/dist/__tests__/helpers/mountFlashList.js.map +0 -1
  158. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts +0 -18
  159. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts.map +0 -1
  160. package/dist/__tests__/helpers/mountMasonryFlashList.js +0 -49
  161. package/dist/__tests__/helpers/mountMasonryFlashList.js.map +0 -1
  162. package/dist/__tests__/useBlankAreaTracker.test.d.ts +0 -2
  163. package/dist/__tests__/useBlankAreaTracker.test.d.ts.map +0 -1
  164. package/dist/__tests__/useBlankAreaTracker.test.js +0 -179
  165. package/dist/__tests__/useBlankAreaTracker.test.js.map +0 -1
  166. package/dist/benchmark/useBlankAreaTracker.d.ts +0 -34
  167. package/dist/benchmark/useBlankAreaTracker.d.ts.map +0 -1
  168. package/dist/benchmark/useBlankAreaTracker.js +0 -66
  169. package/dist/benchmark/useBlankAreaTracker.js.map +0 -1
  170. package/dist/enableNewCore.d.ts +0 -3
  171. package/dist/enableNewCore.d.ts.map +0 -1
  172. package/dist/enableNewCore.js +0 -25
  173. package/dist/enableNewCore.js.map +0 -1
  174. package/dist/errors/CustomError.d.ts +0 -8
  175. package/dist/errors/CustomError.d.ts.map +0 -1
  176. package/dist/errors/CustomError.js +0 -14
  177. package/dist/errors/CustomError.js.map +0 -1
  178. package/dist/errors/ExceptionList.d.ts +0 -24
  179. package/dist/errors/ExceptionList.d.ts.map +0 -1
  180. package/dist/errors/ExceptionList.js +0 -26
  181. package/dist/errors/ExceptionList.js.map +0 -1
  182. package/dist/errors/Warnings.d.ts +0 -9
  183. package/dist/errors/Warnings.d.ts.map +0 -1
  184. package/dist/errors/Warnings.js +0 -13
  185. package/dist/errors/Warnings.js.map +0 -1
  186. package/dist/native/auto-layout/AutoLayoutView.d.ts +0 -22
  187. package/dist/native/auto-layout/AutoLayoutView.d.ts.map +0 -1
  188. package/dist/native/auto-layout/AutoLayoutView.js +0 -48
  189. package/dist/native/auto-layout/AutoLayoutView.js.map +0 -1
  190. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts +0 -4
  191. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts.map +0 -1
  192. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js +0 -6
  193. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js.map +0 -1
  194. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts +0 -5
  195. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts.map +0 -1
  196. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts +0 -4
  197. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts.map +0 -1
  198. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js +0 -6
  199. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js.map +0 -1
  200. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js +0 -6
  201. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js.map +0 -1
  202. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts +0 -16
  203. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts.map +0 -1
  204. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js +0 -3
  205. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js.map +0 -1
  206. package/dist/native/cell-container/CellContainer.android.d.ts +0 -6
  207. package/dist/native/cell-container/CellContainer.android.d.ts.map +0 -1
  208. package/dist/native/cell-container/CellContainer.android.js +0 -9
  209. package/dist/native/cell-container/CellContainer.android.js.map +0 -1
  210. package/dist/native/cell-container/CellContainer.d.ts +0 -8
  211. package/dist/native/cell-container/CellContainer.d.ts.map +0 -1
  212. package/dist/native/cell-container/CellContainer.ios.d.ts +0 -6
  213. package/dist/native/cell-container/CellContainer.ios.d.ts.map +0 -1
  214. package/dist/native/cell-container/CellContainer.ios.js +0 -9
  215. package/dist/native/cell-container/CellContainer.ios.js.map +0 -1
  216. package/dist/native/cell-container/CellContainer.js +0 -11
  217. package/dist/native/cell-container/CellContainer.js.map +0 -1
  218. package/dist/native/cell-container/CellContainer.web.d.ts +0 -7
  219. package/dist/native/cell-container/CellContainer.web.d.ts.map +0 -1
  220. package/dist/native/cell-container/CellContainer.web.js +0 -13
  221. package/dist/native/cell-container/CellContainer.web.js.map +0 -1
  222. package/dist/specs/AutoLayoutNativeComponent.d.ts +0 -18
  223. package/dist/specs/AutoLayoutNativeComponent.d.ts.map +0 -1
  224. package/dist/specs/AutoLayoutNativeComponent.js +0 -6
  225. package/dist/specs/AutoLayoutNativeComponent.js.map +0 -1
  226. package/dist/specs/CellContainerNativeComponent.d.ts +0 -8
  227. package/dist/specs/CellContainerNativeComponent.d.ts.map +0 -1
  228. package/dist/specs/CellContainerNativeComponent.js +0 -6
  229. package/dist/specs/CellContainerNativeComponent.js.map +0 -1
  230. package/dist/utils/ContentContainerUtils.d.ts +0 -27
  231. package/dist/utils/ContentContainerUtils.d.ts.map +0 -1
  232. package/dist/utils/ContentContainerUtils.js +0 -48
  233. package/dist/utils/ContentContainerUtils.js.map +0 -1
  234. package/dist/viewability/ViewToken.d.ts.map +0 -1
  235. package/dist/viewability/ViewToken.js.map +0 -1
  236. package/dist/viewability/ViewabilityHelper.d.ts.map +0 -1
  237. package/dist/viewability/ViewabilityManager.d.ts.map +0 -1
  238. package/dist/viewability/ViewabilityManager.js.map +0 -1
  239. package/ios/RNFlashList.xcodeproj/project.pbxproj +0 -3
  240. package/ios/RNFlashList.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  241. package/ios/Sources/AutoLayoutView.swift +0 -294
  242. package/ios/Sources/AutoLayoutViewComponentView.h +0 -16
  243. package/ios/Sources/AutoLayoutViewComponentView.mm +0 -90
  244. package/ios/Sources/AutoLayoutViewManager.mm +0 -14
  245. package/ios/Sources/AutoLayoutViewManager.swift +0 -12
  246. package/ios/Sources/CellContainerComponentView.h +0 -18
  247. package/ios/Sources/CellContainerComponentView.mm +0 -62
  248. package/ios/Sources/CellContainerManager.mm +0 -8
  249. package/ios/Sources/CellContainerManager.swift +0 -12
  250. package/ios/Sources/FlatListPro-Bridging-Header.h +0 -11
  251. package/ios/Tests/AutoLayoutViewTests.swift +0 -113
  252. package/src/FlashList.tsx +0 -953
  253. package/src/GridLayoutProviderWithProps.ts +0 -180
  254. package/src/MasonryFlashList.tsx +0 -476
  255. package/src/PureComponentWrapper.tsx +0 -42
  256. package/src/__tests__/ContentContainerUtils.test.ts +0 -130
  257. package/src/__tests__/FlashList.test.tsx +0 -1001
  258. package/src/__tests__/GridLayoutProviderWithProps.test.ts +0 -179
  259. package/src/__tests__/MasonryFlashList.test.ts +0 -292
  260. package/src/__tests__/PlatformHelper.web.test.ts +0 -45
  261. package/src/__tests__/helpers/mountFlashList.tsx +0 -62
  262. package/src/__tests__/helpers/mountMasonryFlashList.tsx +0 -70
  263. package/src/__tests__/useBlankAreaTracker.test.tsx +0 -206
  264. package/src/benchmark/useBlankAreaTracker.ts +0 -117
  265. package/src/enableNewCore.ts +0 -24
  266. package/src/errors/CustomError.ts +0 -10
  267. package/src/errors/ExceptionList.ts +0 -28
  268. package/src/errors/Warnings.ts +0 -15
  269. package/src/native/auto-layout/AutoLayoutView.tsx +0 -73
  270. package/src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts +0 -7
  271. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts +0 -7
  272. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ts +0 -7
  273. package/src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts +0 -17
  274. package/src/native/cell-container/CellContainer.android.ts +0 -7
  275. package/src/native/cell-container/CellContainer.ios.ts +0 -7
  276. package/src/native/cell-container/CellContainer.tsx +0 -14
  277. package/src/native/cell-container/CellContainer.web.tsx +0 -9
  278. package/src/specs/AutoLayoutNativeComponent.ts +0 -24
  279. package/src/specs/CellContainerNativeComponent.ts +0 -9
  280. package/src/utils/ContentContainerUtils.ts +0 -92
  281. /package/dist/{viewability → recyclerview/viewability}/ViewToken.d.ts +0 -0
  282. /package/dist/{viewability → recyclerview/viewability}/ViewToken.js +0 -0
  283. /package/src/{viewability → recyclerview/viewability}/ViewToken.ts +0 -0
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useOnNativeBlankAreaEvents = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importStar(require("react"));
6
- var AutoLayoutViewNativeComponent_1 = tslib_1.__importDefault(require("./AutoLayoutViewNativeComponent"));
7
- var listeners = [];
8
- var useOnNativeBlankAreaEvents = function (onBlankAreaEvent) {
9
- (0, react_1.useEffect)(function () {
10
- listeners.push(onBlankAreaEvent);
11
- return function () {
12
- listeners.filter(function (callback) { return callback !== onBlankAreaEvent; });
13
- };
14
- }, [onBlankAreaEvent]);
15
- };
16
- exports.useOnNativeBlankAreaEvents = useOnNativeBlankAreaEvents;
17
- var AutoLayoutView = /** @class */ (function (_super) {
18
- tslib_1.__extends(AutoLayoutView, _super);
19
- function AutoLayoutView() {
20
- var _this = _super.apply(this, tslib_1.__spreadArray([], tslib_1.__read(arguments), false)) || this;
21
- _this.onBlankAreaEventCallback = function (_a) {
22
- var nativeEvent = _a.nativeEvent;
23
- var blankArea = Math.max(nativeEvent.offsetStart, nativeEvent.offsetEnd);
24
- var blankEventValue = {
25
- blankArea: blankArea,
26
- offsetStart: nativeEvent.offsetStart,
27
- offsetEnd: nativeEvent.offsetEnd,
28
- };
29
- _this.broadcastBlankEvent(blankEventValue);
30
- if (_this.props.onBlankAreaEvent) {
31
- _this.props.onBlankAreaEvent(blankEventValue);
32
- }
33
- };
34
- return _this;
35
- }
36
- AutoLayoutView.prototype.broadcastBlankEvent = function (value) {
37
- var len = listeners.length;
38
- for (var i = 0; i < len; i++) {
39
- listeners[i](value);
40
- }
41
- };
42
- AutoLayoutView.prototype.render = function () {
43
- return (react_1.default.createElement(AutoLayoutViewNativeComponent_1.default, tslib_1.__assign({}, this.props, { onBlankAreaEvent: this.onBlankAreaEventCallback, enableInstrumentation: listeners.length !== 0 || Boolean(this.props.onBlankAreaEvent), disableAutoLayout: this.props.disableAutoLayout }), this.props.children));
44
- };
45
- return AutoLayoutView;
46
- }(react_1.default.Component));
47
- exports.default = AutoLayoutView;
48
- //# sourceMappingURL=AutoLayoutView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutView.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutView.tsx"],"names":[],"mappings":";;;;AAAA,qDAAoD;AAGpD,0GAA4E;AAI5E,IAAM,SAAS,GAA4B,EAAE,CAAC;AAEvC,IAAM,0BAA0B,GAAG,UACxC,gBAA0D;IAE1D,IAAA,iBAAS,EAAC;QACR,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACjC,OAAO;YACL,SAAS,CAAC,MAAM,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,KAAK,gBAAgB,EAA7B,CAA6B,CAAC,CAAC;QAChE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACzB,CAAC,CAAC;AATW,QAAA,0BAA0B,8BASrC;AAeF;IAA6B,0CAAoC;IAAjE;;QACU,8BAAwB,GAAG,UAAC,EAEjB;gBADjB,WAAW,iBAAA;YAEX,IAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;YAC3E,IAAM,eAAe,GAAG;gBACtB,SAAS,WAAA;gBACT,WAAW,EAAE,WAAW,CAAC,WAAW;gBACpC,SAAS,EAAE,WAAW,CAAC,SAAS;aACjC,CAAC;YACF,KAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;YAC1C,IAAI,KAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC;gBAChC,KAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC,CAAC;;IAuBJ,CAAC;IArBS,4CAAmB,GAA3B,UAA4B,KAAqB;QAC/C,IAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED,+BAAM,GAAN;QACE,OAAO,CACL,8BAAC,uCAA6B,uBACxB,IAAI,CAAC,KAAK,IACd,gBAAgB,EAAE,IAAI,CAAC,wBAAwB,EAC/C,qBAAqB,EACnB,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAEhE,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,KAE9C,IAAI,CAAC,KAAK,CAAC,QAAQ,CACU,CACjC,CAAC;IACJ,CAAC;IACH,qBAAC;AAAD,CAAC,AArCD,CAA6B,eAAK,CAAC,SAAS,GAqC3C;AAED,kBAAe,cAAc,CAAC"}
@@ -1,4 +0,0 @@
1
- import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
2
- declare const AutoLayoutViewNativeComponent: import("react-native").HostComponent<AutoLayoutViewNativeComponentProps>;
3
- export default AutoLayoutViewNativeComponent;
4
- //# sourceMappingURL=AutoLayoutViewNativeComponent.android.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.android.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,0EAC2C,CAAC;AAC/E,eAAe,6BAA6B,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var react_native_1 = require("react-native");
4
- var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
5
- exports.default = AutoLayoutViewNativeComponent;
6
- //# sourceMappingURL=AutoLayoutViewNativeComponent.android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.android.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAItD,IAAM,6BAA6B,GACjC,IAAA,qCAAsB,EAAqC,gBAAgB,CAAC,CAAC;AAC/E,kBAAe,6BAA6B,CAAC"}
@@ -1,5 +0,0 @@
1
- import { HostComponent } from "react-native";
2
- import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
3
- declare const AutoLayoutViewNativeComponent: HostComponent<AutoLayoutViewNativeComponentProps>;
4
- export default AutoLayoutViewNativeComponent;
5
- //# sourceMappingURL=AutoLayoutViewNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAQ,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,EAClB,aAAa,CAAC,kCAAkC,CAAC,CAAC;AACnE,eAAe,6BAA6B,CAAC"}
@@ -1,4 +0,0 @@
1
- import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
2
- declare const AutoLayoutViewNativeComponent: import("react-native").HostComponent<AutoLayoutViewNativeComponentProps>;
3
- export default AutoLayoutViewNativeComponent;
4
- //# sourceMappingURL=AutoLayoutViewNativeComponent.ios.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.ios.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,0EAC2C,CAAC;AAC/E,eAAe,6BAA6B,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var react_native_1 = require("react-native");
4
- var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
5
- exports.default = AutoLayoutViewNativeComponent;
6
- //# sourceMappingURL=AutoLayoutViewNativeComponent.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.ios.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAItD,IAAM,6BAA6B,GACjC,IAAA,qCAAsB,EAAqC,gBAAgB,CAAC,CAAC;AAC/E,kBAAe,6BAA6B,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var react_native_1 = require("react-native");
4
- var AutoLayoutViewNativeComponent = react_native_1.View;
5
- exports.default = AutoLayoutViewNativeComponent;
6
- //# sourceMappingURL=AutoLayoutViewNativeComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAInD,IAAM,6BAA6B,GACjC,mBAAgE,CAAC;AACnE,kBAAe,6BAA6B,CAAC"}
@@ -1,16 +0,0 @@
1
- import { ReactNode } from "react";
2
- export interface OnBlankAreaEvent {
3
- nativeEvent: {
4
- offsetStart: number;
5
- offsetEnd: number;
6
- };
7
- }
8
- type OnBlankAreaEventHandler = (event: OnBlankAreaEvent) => void;
9
- export interface AutoLayoutViewNativeComponentProps {
10
- children?: ReactNode;
11
- onBlankAreaEvent: OnBlankAreaEventHandler;
12
- enableInstrumentation: boolean;
13
- disableAutoLayout?: boolean;
14
- }
15
- export {};
16
- //# sourceMappingURL=AutoLayoutViewNativeComponentProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponentProps.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE;QACX,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,KAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAEjE,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=AutoLayoutViewNativeComponentProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponentProps.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- /**
2
- * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
3
- */
4
- declare const CellContainer: import("react-native").HostComponent<unknown>;
5
- export default CellContainer;
6
- //# sourceMappingURL=CellContainer.android.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.android.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.android.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,QAAA,MAAM,aAAa,+CAA0C,CAAC;AAC9D,eAAe,aAAa,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var react_native_1 = require("react-native");
4
- /**
5
- * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
6
- */
7
- var CellContainer = (0, react_native_1.requireNativeComponent)("CellContainer");
8
- exports.default = CellContainer;
9
- //# sourceMappingURL=CellContainer.android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.android.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.android.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAEtD;;GAEG;AACH,IAAM,aAAa,GAAG,IAAA,qCAAsB,EAAC,eAAe,CAAC,CAAC;AAC9D,kBAAe,aAAa,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { ViewProps } from "react-native";
3
- export interface CellContainerProps extends ViewProps {
4
- index: number;
5
- }
6
- declare const CellContainer: React.ForwardRefExoticComponent<CellContainerProps & React.RefAttributes<unknown>>;
7
- export default CellContainer;
8
- //# sourceMappingURL=CellContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,aAAa,oFAIlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
3
- */
4
- declare const CellContainer: import("react-native").HostComponent<unknown>;
5
- export default CellContainer;
6
- //# sourceMappingURL=CellContainer.ios.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.ios.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.ios.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,QAAA,MAAM,aAAa,+CAA0C,CAAC;AAC9D,eAAe,aAAa,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var react_native_1 = require("react-native");
4
- /**
5
- * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
6
- */
7
- var CellContainer = (0, react_native_1.requireNativeComponent)("CellContainer");
8
- exports.default = CellContainer;
9
- //# sourceMappingURL=CellContainer.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.ios.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.ios.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAEtD;;GAEG;AACH,IAAM,aAAa,GAAG,IAAA,qCAAsB,EAAC,eAAe,CAAC,CAAC;AAC9D,kBAAe,aAAa,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var react_1 = tslib_1.__importDefault(require("react"));
5
- var react_native_1 = require("react-native");
6
- var CellContainer = react_1.default.forwardRef(function (props, ref) {
7
- return react_1.default.createElement(react_native_1.View, tslib_1.__assign({ ref: ref }, props));
8
- });
9
- CellContainer.displayName = "CellContainer";
10
- exports.default = CellContainer;
11
- //# sourceMappingURL=CellContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,6CAA+C;AAM/C,IAAM,aAAa,GAAG,eAAK,CAAC,UAAU,CACpC,UAAC,KAAyB,EAAE,GAAQ;IAClC,OAAO,8BAAC,mBAAI,qBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;AACvC,CAAC,CACF,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAC5C,kBAAe,aAAa,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- /**
3
- * On web we use a view instead of cell container till we build native web implementations
4
- */
5
- declare const CellContainer: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
6
- export default CellContainer;
7
- //# sourceMappingURL=CellContainer.web.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.web.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B;;GAEG;AACH,QAAA,MAAM,aAAa,kFAEjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var react_1 = tslib_1.__importDefault(require("react"));
5
- /**
6
- * On web we use a view instead of cell container till we build native web implementations
7
- */
8
- var CellContainer = react_1.default.forwardRef(function (props, ref) {
9
- return react_1.default.createElement("div", tslib_1.__assign({ ref: ref }, props));
10
- });
11
- CellContainer.displayName = "CellContainer";
12
- exports.default = CellContainer;
13
- //# sourceMappingURL=CellContainer.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainer.web.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.web.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B;;GAEG;AACH,IAAM,aAAa,GAAG,eAAK,CAAC,UAAU,CAAC,UAAC,KAAU,EAAE,GAAG;IACrD,OAAO,wDAAK,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;AACtC,CAAC,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAC5C,kBAAe,aAAa,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { ViewProps } from "react-native";
2
- import type { Int32, Double, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
- type BlankAreaEvent = Readonly<{
4
- offsetStart: Int32;
5
- offsetEnd: Int32;
6
- }>;
7
- interface NativeProps extends ViewProps {
8
- horizontal?: boolean;
9
- scrollOffset?: Double;
10
- windowSize?: Double;
11
- renderAheadOffset?: Double;
12
- enableInstrumentation?: boolean;
13
- disableAutoLayout?: boolean;
14
- onBlankAreaEvent?: DirectEventHandler<BlankAreaEvent>;
15
- }
16
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
17
- export default _default;
18
- //# sourceMappingURL=AutoLayoutNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutNativeComponent.d.ts","sourceRoot":"","sources":["../../src/specs/AutoLayoutNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,KAAK,cAAc,GAAG,QAAQ,CAAC;IAC7B,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC;CAClB,CAAC,CAAC;AAEH,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACvD;;AAED,wBAAqE"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
5
- exports.default = (0, codegenNativeComponent_1.default)("AutoLayoutView");
6
- //# sourceMappingURL=AutoLayoutNativeComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoLayoutNativeComponent.js","sourceRoot":"","sources":["../../src/specs/AutoLayoutNativeComponent.ts"],"names":[],"mappings":";;;AAAA,2HAA6F;AAuB7F,kBAAe,IAAA,gCAAsB,EAAc,gBAAgB,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Int32 } from "react-native/Libraries/Types/CodegenTypes";
2
- import type { ViewProps } from "react-native";
3
- interface NativeProps extends ViewProps {
4
- index?: Int32;
5
- }
6
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
7
- export default _default;
8
- //# sourceMappingURL=CellContainerNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../src/specs/CellContainerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;;AAED,wBAAoE"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
5
- exports.default = (0, codegenNativeComponent_1.default)("CellContainer");
6
- //# sourceMappingURL=CellContainerNativeComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellContainerNativeComponent.js","sourceRoot":"","sources":["../../src/specs/CellContainerNativeComponent.ts"],"names":[],"mappings":";;;AAAA,2HAA6F;AAQ7F,kBAAe,IAAA,gCAAsB,EAAc,eAAe,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- import { ViewStyle } from "react-native";
2
- import { Dimension } from "recyclerlistview";
3
- import { ContentStyle } from "../FlashListProps";
4
- export interface ContentStyleExplicit {
5
- paddingTop: number;
6
- paddingBottom: number;
7
- paddingLeft: number;
8
- paddingRight: number;
9
- backgroundColor?: string;
10
- }
11
- export declare const updateContentStyle: (contentStyle: ContentStyle, contentContainerStyleSource: ContentStyle | undefined) => ContentStyleExplicit;
12
- export declare const hasUnsupportedKeysInContentContainerStyle: (contentContainerStyleSource: ViewStyle | undefined) => boolean;
13
- /** Applies padding corrections to given dimension. Mutates the dim object that was passed and returns it. */
14
- export declare const applyContentContainerInsetForLayoutManager: (dim: Dimension, contentContainerStyle: ViewStyle | undefined, horizontal: boolean | undefined | null) => Dimension;
15
- /** Returns padding to be applied on content container and will ignore paddings that have already been handled. */
16
- export declare const getContentContainerPadding: (contentStyle: ContentStyleExplicit, horizontal: boolean | undefined | null) => {
17
- paddingTop: number;
18
- paddingBottom: number;
19
- paddingLeft?: undefined;
20
- paddingRight?: undefined;
21
- } | {
22
- paddingLeft: number;
23
- paddingRight: number;
24
- paddingTop?: undefined;
25
- paddingBottom?: undefined;
26
- };
27
- //# sourceMappingURL=ContentContainerUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentContainerUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ContentContainerUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,GAC7B,cAAc,YAAY,EAC1B,6BAA6B,YAAY,GAAG,SAAS,KACpD,oBAyBF,CAAC;AAEF,eAAO,MAAM,yCAAyC,GACpD,6BAA6B,SAAS,GAAG,SAAS,YAcnD,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,0CAA0C,GACrD,KAAK,SAAS,EACd,uBAAuB,SAAS,GAAG,SAAS,EAC5C,YAAY,OAAO,GAAG,SAAS,GAAG,IAAI,cASvC,CAAC;AAEF,kHAAkH;AAClH,eAAO,MAAM,0BAA0B,GACrC,cAAc,oBAAoB,EAClC,YAAY,OAAO,GAAG,SAAS,GAAG,IAAI;;;;;;;;;;CAavC,CAAC"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getContentContainerPadding = exports.applyContentContainerInsetForLayoutManager = exports.hasUnsupportedKeysInContentContainerStyle = exports.updateContentStyle = void 0;
4
- var tslib_1 = require("tslib");
5
- var updateContentStyle = function (contentStyle, contentContainerStyleSource) {
6
- var _a = (contentContainerStyleSource !== null && contentContainerStyleSource !== void 0 ? contentContainerStyleSource : {}), paddingTop = _a.paddingTop, paddingRight = _a.paddingRight, paddingBottom = _a.paddingBottom, paddingLeft = _a.paddingLeft, padding = _a.padding, paddingVertical = _a.paddingVertical, paddingHorizontal = _a.paddingHorizontal, backgroundColor = _a.backgroundColor;
7
- contentStyle.paddingLeft = Number(paddingLeft || paddingHorizontal || padding || 0);
8
- contentStyle.paddingRight = Number(paddingRight || paddingHorizontal || padding || 0);
9
- contentStyle.paddingTop = Number(paddingTop || paddingVertical || padding || 0);
10
- contentStyle.paddingBottom = Number(paddingBottom || paddingVertical || padding || 0);
11
- contentStyle.backgroundColor = backgroundColor;
12
- return contentStyle;
13
- };
14
- exports.updateContentStyle = updateContentStyle;
15
- var hasUnsupportedKeysInContentContainerStyle = function (contentContainerStyleSource) {
16
- var _a = (contentContainerStyleSource !== null && contentContainerStyleSource !== void 0 ? contentContainerStyleSource : {}), paddingTop = _a.paddingTop, paddingRight = _a.paddingRight, paddingBottom = _a.paddingBottom, paddingLeft = _a.paddingLeft, padding = _a.padding, paddingVertical = _a.paddingVertical, paddingHorizontal = _a.paddingHorizontal, backgroundColor = _a.backgroundColor, rest = tslib_1.__rest(_a, ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "padding", "paddingVertical", "paddingHorizontal", "backgroundColor"]);
17
- return Object.keys(rest).length > 0;
18
- };
19
- exports.hasUnsupportedKeysInContentContainerStyle = hasUnsupportedKeysInContentContainerStyle;
20
- /** Applies padding corrections to given dimension. Mutates the dim object that was passed and returns it. */
21
- var applyContentContainerInsetForLayoutManager = function (dim, contentContainerStyle, horizontal) {
22
- var contentStyle = (0, exports.updateContentStyle)({}, contentContainerStyle);
23
- if (horizontal) {
24
- dim.height -= contentStyle.paddingTop + contentStyle.paddingBottom;
25
- }
26
- else {
27
- dim.width -= contentStyle.paddingLeft + contentStyle.paddingRight;
28
- }
29
- return dim;
30
- };
31
- exports.applyContentContainerInsetForLayoutManager = applyContentContainerInsetForLayoutManager;
32
- /** Returns padding to be applied on content container and will ignore paddings that have already been handled. */
33
- var getContentContainerPadding = function (contentStyle, horizontal) {
34
- if (horizontal) {
35
- return {
36
- paddingTop: contentStyle.paddingTop,
37
- paddingBottom: contentStyle.paddingBottom,
38
- };
39
- }
40
- else {
41
- return {
42
- paddingLeft: contentStyle.paddingLeft,
43
- paddingRight: contentStyle.paddingRight,
44
- };
45
- }
46
- };
47
- exports.getContentContainerPadding = getContentContainerPadding;
48
- //# sourceMappingURL=ContentContainerUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentContainerUtils.js","sourceRoot":"","sources":["../../src/utils/ContentContainerUtils.ts"],"names":[],"mappings":";;;;AAaO,IAAM,kBAAkB,GAAG,UAChC,Y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0C,GAAG,UACxD,GAAc,EACd,qBAA4C,EAC5C,UAAsC;IAEtC,IAAM,YAAY,GAAG,IAAA,0BAAkB,EAAC,EAAE,EAAE,qBAAqB,CAAC,CAAC;IACnE,IAAI,UAAU,EAAE,CAAC;QACf,GAAG,CAAC,MAAM,IAAI,YAAY,CAAC,UAAU,GAAG,YAAY,CAAC,aAAa,CAAC;IACrE,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,KAAK,IAAI,YAAY,CAAC,WAAW,GAAG,YAAY,CAAC,YAAY,CAAC;IACpE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAZW,QAAA,0CAA0C,8CAYrD;AAEF,kHAAkH;AAC3G,IAAM,0BAA0B,GAAG,UACxC,YAAkC,EAClC,UAAsC;IAEtC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO;YACL,UAAU,EAAE,YAAY,CAAC,UAAU;YACnC,aAAa,EAAE,YAAY,CAAC,aAAa;SAC1C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,WAAW,EAAE,YAAY,CAAC,WAAW;YACrC,YAAY,EAAE,YAAY,CAAC,YAAY;SACxC,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,0BAA0B,8BAerC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewToken.d.ts","sourceRoot":"","sources":["../../src/viewability/ViewToken.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC;IACR,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewToken.js","sourceRoot":"","sources":["../../src/viewability/ViewToken.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewabilityHelper.d.ts","sourceRoot":"","sources":["../../src/viewability/ViewabilityHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAKrD;;;GAGG;AACH,cAAM,iBAAiB;IACrB;;OAEG;IACH,uBAAuB,EAAE,MAAM,EAAE,CAAM;IAEvC,aAAa,UAAS;IAEtB,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,2BAA2B,CAAgB;IAEnD,OAAO,CAAC,iBAAiB,CAAuC;IAChE,OAAO,CAAC,sBAAsB,CAIpB;IAEV,OAAO,CAAC,MAAM,CAAkC;gBAG9C,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EACvD,sBAAsB,EAAE,CACtB,OAAO,EAAE,MAAM,EAAE,EACjB,oBAAoB,EAAE,MAAM,EAAE,EAC9B,sBAAsB,EAAE,MAAM,EAAE,KAC7B,IAAI;IAMJ,OAAO;IAKP,mBAAmB,CACxB,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,EAChD,eAAe,CAAC,EAAE,MAAM,EAAE;IA8CrB,2BAA2B,CAAC,kBAAkB,EAAE,MAAM,EAAE;IAsBxD,gCAAgC;IAIvC,OAAO,CAAC,cAAc;CAuCvB;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewabilityManager.d.ts","sourceRoot":"","sources":["../../src/viewability/ViewabilityManager.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAKrC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAkB,CAAC,CAAC;IACvC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,kBAAkB,C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AA,YAAY,CAAC,KAAK,CAAC,8BAA8B,mCAAI,EAAE,CAAC,CAAC,OAAO,CAC/D,UAAC,IAAI,EAAE,KAAK;YACV,KAAI,CAAC,kBAAkB,CAAC,IAAI,CAC1B,KAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,iBAAiB,EAAE,UAAC,IAAI;;gBACxD,IAAM,QAAQ,GACZ,MAAA,MAAA,YAAY,CAAC,KAAK,CAAC,8BAA8B,0CAAG,KAAK,CAAC,0CACtD,sBAAsB,CAAC;gBAC7B,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,IAAI,CAAC,CAAC;YACnB,CAAC,CAAC,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;IAKD,sBAAW,4DAA4B;QAHvC;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5C,CAAC;;;OAAA;IAkGH,yBAAC;AAAD,CAAC,AAzID,IAyIC"}
@@ -1,3 +0,0 @@
1
- // This file is necessary because of the `react-native` CLI autolinking feature that adds a module based on whether this file exists
2
- // as per [this](https://github.com/react-native-community/cli/issues/1054) issue.
3
- // To edit a native iOS module, you should use the Xcode project in the `fixture` folder.
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- </Workspace>