buckaroo-js-core 0.8.5 → 0.14.0

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 (249) hide show
  1. package/LICENSE +24 -12
  2. package/README.md +55 -51
  3. package/dist/index.cjs.js +114 -0
  4. package/dist/index.cjs.js.map +1 -0
  5. package/dist/index.es.js +61171 -0
  6. package/dist/index.es.js.map +1 -0
  7. package/dist/index.esm.js +61171 -0
  8. package/dist/index.esm.js.map +1 -0
  9. package/dist/jest.setup.d.ts +0 -0
  10. package/dist/src/SampleComponent.d.ts +10 -0
  11. package/{buckaroo_js → dist/src}/baked_data/colorMap.d.ts +0 -1
  12. package/dist/src/baked_data/olympic-winners.d.ts +12 -0
  13. package/dist/src/components/BuckarooInfiniteWidget.flash.test.d.ts +1 -0
  14. package/dist/src/components/BuckarooStaticTable.d.ts +26 -0
  15. package/dist/src/components/BuckarooWidgetInfinite.d.ts +40 -0
  16. package/{buckaroo_js → dist/src}/components/ColumnsEditor.d.ts +5 -8
  17. package/{buckaroo_js → dist/src}/components/CommandUtils.d.ts +9 -5
  18. package/dist/src/components/DCFCell.d.ts +19 -0
  19. package/dist/src/components/DFViewerParts/ChartCell.d.ts +43 -0
  20. package/dist/src/components/DFViewerParts/ChartCell.hooks.test.d.ts +1 -0
  21. package/dist/src/components/DFViewerParts/DFViewerConfigs.d.ts +5 -0
  22. package/dist/src/components/DFViewerParts/DFViewerDataHelper.d.ts +20 -0
  23. package/dist/src/components/DFViewerParts/DFViewerInfinite.d.ts +47 -0
  24. package/dist/src/components/DFViewerParts/DFViewerInfinite.flash.test.d.ts +1 -0
  25. package/dist/src/components/DFViewerParts/DFViewerInfinite.test.d.ts +1 -0
  26. package/dist/src/components/DFViewerParts/DFWhole.d.ts +176 -0
  27. package/{buckaroo_js → dist/src}/components/DFViewerParts/Displayer.d.ts +20 -5
  28. package/dist/src/components/DFViewerParts/HistogramCell.d.ts +29 -0
  29. package/dist/src/components/DFViewerParts/HistogramCell.hooks.test.d.ts +1 -0
  30. package/dist/src/components/DFViewerParts/OtherRenderers.d.ts +9 -0
  31. package/dist/src/components/DFViewerParts/RowCache.d.ts +61 -0
  32. package/dist/src/components/DFViewerParts/RowCache.test.d.ts +1 -0
  33. package/dist/src/components/DFViewerParts/RowStore.d.ts +22 -0
  34. package/dist/src/components/DFViewerParts/RowStore.test.d.ts +1 -0
  35. package/dist/src/components/DFViewerParts/RowStoreGc.d.ts +22 -0
  36. package/dist/src/components/DFViewerParts/RowStoreGc.test.d.ts +1 -0
  37. package/dist/src/components/DFViewerParts/SeriesSummaryTooltip.d.ts +13 -0
  38. package/dist/src/components/DFViewerParts/SmartRowCache.d.ts +83 -0
  39. package/dist/src/components/DFViewerParts/SmartRowCache.test.d.ts +23 -0
  40. package/dist/src/components/DFViewerParts/Styler.d.ts +33 -0
  41. package/dist/src/components/DFViewerParts/TableInfinite.d.ts +10 -0
  42. package/dist/src/components/DFViewerParts/ViewRegistry.d.ts +21 -0
  43. package/dist/src/components/DFViewerParts/ViewRegistry.test.d.ts +1 -0
  44. package/dist/src/components/DFViewerParts/Views.d.ts +53 -0
  45. package/dist/src/components/DFViewerParts/Views.test.d.ts +1 -0
  46. package/dist/src/components/DFViewerParts/autocleaning.toggle.integration.test.d.ts +27 -0
  47. package/dist/src/components/DFViewerParts/gridUtils.d.ts +81 -0
  48. package/dist/src/components/DFViewerParts/gridUtils.test.d.ts +1 -0
  49. package/dist/src/components/DFViewerParts/highlight.test.d.ts +1 -0
  50. package/dist/src/components/DFViewerParts/resolveDFData.d.ts +29 -0
  51. package/dist/src/components/DFViewerParts/resolveDFData.test.d.ts +1 -0
  52. package/dist/src/components/DFViewerParts/xorqWindow.dom.test.d.ts +1 -0
  53. package/dist/src/components/DFViewerParts/xorqWindow.test.d.ts +1 -0
  54. package/{buckaroo_js → dist/src}/components/DependentTabs.d.ts +8 -13
  55. package/dist/src/components/MessageBox.d.ts +8 -0
  56. package/{buckaroo_js → dist/src}/components/OperationDetail.d.ts +4 -6
  57. package/dist/src/components/OperationExamples.d.ts +8 -0
  58. package/{buckaroo_js → dist/src}/components/OperationUtils.d.ts +1 -1
  59. package/dist/src/components/Operations.d.ts +14 -0
  60. package/dist/src/components/Operations.test.d.ts +4 -0
  61. package/dist/src/components/OperationsList.d.ts +9 -0
  62. package/dist/src/components/OperationsList.test.d.ts +0 -0
  63. package/dist/src/components/StatusBar.d.ts +15 -0
  64. package/{buckaroo_js → dist/src}/components/WidgetTypes.d.ts +3 -4
  65. package/dist/src/components/useColorScheme.d.ts +7 -0
  66. package/dist/src/components/utils.d.ts +299 -0
  67. package/dist/src/index.d.ts +64 -0
  68. package/dist/src/server/BuckarooServerView.d.ts +52 -0
  69. package/dist/src/server/BuckarooServerView.test.d.ts +1 -0
  70. package/dist/src/server/WebSocketModel.d.ts +31 -0
  71. package/dist/src/stories/BuckarooWidgetTest.stories.d.ts +12 -0
  72. package/dist/src/stories/ChartCell.stories.d.ts +20 -0
  73. package/dist/src/stories/ColumnsEditor.stories.d.ts +17 -0
  74. package/dist/src/stories/DFViewer.stories.d.ts +26 -0
  75. package/dist/src/stories/DFViewerInfiniteRaw.stories.d.ts +24 -0
  76. package/dist/src/stories/DFViewerInfiniteShadow.stories.d.ts +31 -0
  77. package/dist/src/stories/HistogramCell.stories.d.ts +18 -0
  78. package/dist/src/stories/InheritEdgeCases.stories.d.ts +12 -0
  79. package/dist/src/stories/InheritPinnedRows.stories.d.ts +13 -0
  80. package/dist/src/stories/MessageBox.stories.d.ts +26 -0
  81. package/dist/src/stories/OperationViewer.stories.d.ts +24 -0
  82. package/dist/src/stories/OperationsList.stories.d.ts +19 -0
  83. package/dist/src/stories/OutsideParamsInconsistency.stories.d.ts +16 -0
  84. package/dist/src/stories/PinnedRowsDynamic.stories.d.ts +12 -0
  85. package/dist/src/stories/PinnedRowsRace.stories.d.ts +12 -0
  86. package/dist/src/stories/PinnedRowsTranscriptReplayer.stories.d.ts +13 -0
  87. package/dist/src/stories/RawAGGrid.stories.d.ts +17 -0
  88. package/dist/src/stories/SmallDFScroll.stories.d.ts +11 -0
  89. package/dist/src/stories/StatusBar.stories.d.ts +19 -0
  90. package/dist/src/stories/StoryUtils.d.ts +13 -0
  91. package/dist/src/stories/Styling.stories.d.ts +15 -0
  92. package/dist/src/stories/StylingIssues.stories.d.ts +54 -0
  93. package/dist/src/stories/ThemeCustomization.stories.d.ts +22 -0
  94. package/dist/src/stories/UseMemoExamples.stories.d.ts +12 -0
  95. package/dist/src/stories/WeirdTypes.stories.d.ts +17 -0
  96. package/dist/src/test-utils/agGridSpy.d.ts +53 -0
  97. package/dist/src/widgetUtils.d.ts +1 -0
  98. package/dist/style.css +1 -0
  99. package/package.json +109 -98
  100. package/.prettierrc +0 -16
  101. package/CHANGELOG.md +0 -23
  102. package/buckaroo_js/baked_data/colorMap.d.ts.map +0 -1
  103. package/buckaroo_js/baked_data/colorMap.js +0 -520
  104. package/buckaroo_js/baked_data/colorMap.js.map +0 -1
  105. package/buckaroo_js/baked_data/staticData.d.ts +0 -124
  106. package/buckaroo_js/baked_data/staticData.d.ts.map +0 -1
  107. package/buckaroo_js/baked_data/staticData.js +0 -459
  108. package/buckaroo_js/baked_data/staticData.js.map +0 -1
  109. package/buckaroo_js/components/ColumnsEditor.d.ts.map +0 -1
  110. package/buckaroo_js/components/ColumnsEditor.js +0 -68
  111. package/buckaroo_js/components/ColumnsEditor.js.map +0 -1
  112. package/buckaroo_js/components/CommandUtils.d.ts.map +0 -1
  113. package/buckaroo_js/components/CommandUtils.js +0 -17
  114. package/buckaroo_js/components/CommandUtils.js.map +0 -1
  115. package/buckaroo_js/components/DCFCell.d.ts +0 -28
  116. package/buckaroo_js/components/DCFCell.d.ts.map +0 -1
  117. package/buckaroo_js/components/DCFCell.js +0 -120
  118. package/buckaroo_js/components/DCFCell.js.map +0 -1
  119. package/buckaroo_js/components/DFViewerParts/DFViewer.d.ts +0 -29
  120. package/buckaroo_js/components/DFViewerParts/DFViewer.d.ts.map +0 -1
  121. package/buckaroo_js/components/DFViewerParts/DFViewer.js +0 -163
  122. package/buckaroo_js/components/DFViewerParts/DFViewer.js.map +0 -1
  123. package/buckaroo_js/components/DFViewerParts/DFWhole.d.ts +0 -111
  124. package/buckaroo_js/components/DFViewerParts/DFWhole.d.ts.map +0 -1
  125. package/buckaroo_js/components/DFViewerParts/DFWhole.js +0 -17
  126. package/buckaroo_js/components/DFViewerParts/DFWhole.js.map +0 -1
  127. package/buckaroo_js/components/DFViewerParts/Displayer.d.ts.map +0 -1
  128. package/buckaroo_js/components/DFViewerParts/Displayer.js +0 -220
  129. package/buckaroo_js/components/DFViewerParts/Displayer.js.map +0 -1
  130. package/buckaroo_js/components/DFViewerParts/HistogramCell.d.ts +0 -20
  131. package/buckaroo_js/components/DFViewerParts/HistogramCell.d.ts.map +0 -1
  132. package/buckaroo_js/components/DFViewerParts/HistogramCell.js +0 -184
  133. package/buckaroo_js/components/DFViewerParts/HistogramCell.js.map +0 -1
  134. package/buckaroo_js/components/DFViewerParts/OtherRenderers.d.ts +0 -7
  135. package/buckaroo_js/components/DFViewerParts/OtherRenderers.d.ts.map +0 -1
  136. package/buckaroo_js/components/DFViewerParts/OtherRenderers.js +0 -29
  137. package/buckaroo_js/components/DFViewerParts/OtherRenderers.js.map +0 -1
  138. package/buckaroo_js/components/DFViewerParts/SeriesSummaryTooltip.d.ts +0 -5
  139. package/buckaroo_js/components/DFViewerParts/SeriesSummaryTooltip.d.ts.map +0 -1
  140. package/buckaroo_js/components/DFViewerParts/SeriesSummaryTooltip.js +0 -18
  141. package/buckaroo_js/components/DFViewerParts/SeriesSummaryTooltip.js.map +0 -1
  142. package/buckaroo_js/components/DFViewerParts/gridUtils.d.ts +0 -24
  143. package/buckaroo_js/components/DFViewerParts/gridUtils.d.ts.map +0 -1
  144. package/buckaroo_js/components/DFViewerParts/gridUtils.js +0 -230
  145. package/buckaroo_js/components/DFViewerParts/gridUtils.js.map +0 -1
  146. package/buckaroo_js/components/DependentTabs.d.ts.map +0 -1
  147. package/buckaroo_js/components/DependentTabs.js +0 -108
  148. package/buckaroo_js/components/DependentTabs.js.map +0 -1
  149. package/buckaroo_js/components/OperationDetail.d.ts.map +0 -1
  150. package/buckaroo_js/components/OperationDetail.js +0 -144
  151. package/buckaroo_js/components/OperationDetail.js.map +0 -1
  152. package/buckaroo_js/components/OperationUtils.d.ts.map +0 -1
  153. package/buckaroo_js/components/OperationUtils.js +0 -14
  154. package/buckaroo_js/components/OperationUtils.js.map +0 -1
  155. package/buckaroo_js/components/Operations.d.ts +0 -24
  156. package/buckaroo_js/components/Operations.d.ts.map +0 -1
  157. package/buckaroo_js/components/Operations.js +0 -209
  158. package/buckaroo_js/components/Operations.js.map +0 -1
  159. package/buckaroo_js/components/StatusBar.d.ts +0 -12
  160. package/buckaroo_js/components/StatusBar.d.ts.map +0 -1
  161. package/buckaroo_js/components/StatusBar.js +0 -155
  162. package/buckaroo_js/components/StatusBar.js.map +0 -1
  163. package/buckaroo_js/components/WidgetTypes.d.ts.map +0 -1
  164. package/buckaroo_js/components/WidgetTypes.js +0 -3
  165. package/buckaroo_js/components/WidgetTypes.js.map +0 -1
  166. package/buckaroo_js/components/bakedOperationDefaults.d.ts +0 -5
  167. package/buckaroo_js/components/bakedOperationDefaults.d.ts.map +0 -1
  168. package/buckaroo_js/components/bakedOperationDefaults.js +0 -15
  169. package/buckaroo_js/components/bakedOperationDefaults.js.map +0 -1
  170. package/buckaroo_js/components/utils.d.ts +0 -294
  171. package/buckaroo_js/components/utils.d.ts.map +0 -1
  172. package/buckaroo_js/components/utils.js +0 -143
  173. package/buckaroo_js/components/utils.js.map +0 -1
  174. package/buckaroo_js/extension.d.ts +0 -2
  175. package/buckaroo_js/extension.d.ts.map +0 -1
  176. package/buckaroo_js/extension.js +0 -20
  177. package/buckaroo_js/extension.js.map +0 -1
  178. package/buckaroo_js/index.d.ts +0 -24
  179. package/buckaroo_js/index.d.ts.map +0 -1
  180. package/buckaroo_js/index.js +0 -44
  181. package/buckaroo_js/index.js.map +0 -1
  182. package/buckaroo_js/vendor/RechartExtra.d.ts +0 -38
  183. package/buckaroo_js/vendor/RechartExtra.d.ts.map +0 -1
  184. package/buckaroo_js/vendor/RechartExtra.js +0 -17
  185. package/buckaroo_js/vendor/RechartExtra.js.map +0 -1
  186. package/buckaroo_js/vendor/RechartTooltip.d.ts +0 -82
  187. package/buckaroo_js/vendor/RechartTooltip.d.ts.map +0 -1
  188. package/buckaroo_js/vendor/RechartTooltip.js +0 -231
  189. package/buckaroo_js/vendor/RechartTooltip.js.map +0 -1
  190. package/codecov.yml +0 -16
  191. package/eslint.config.mjs +0 -88
  192. package/examples/App.tsx +0 -160
  193. package/examples/CodeBlock.tsx +0 -27
  194. package/examples/CodePenButton.tsx +0 -72
  195. package/examples/ReadmeBlock.tsx +0 -11
  196. package/examples/app.css +0 -29
  197. package/examples/ex/ColumnsEditorEx.tsx +0 -5
  198. package/examples/ex/CommandViewerEx.tsx +0 -18
  199. package/examples/ex/DFViewerEx.tsx +0 -3
  200. package/examples/ex/DFViewerEx_large.tsx +0 -266
  201. package/examples/ex/DFViewerEx_real_summary.tsx +0 -18
  202. package/examples/ex/DFViewerEx_short_data.tsx +0 -22
  203. package/examples/ex/DFViewerEx_string_index.tsx +0 -1012
  204. package/examples/ex/HistogramEx.tsx +0 -41
  205. package/examples/ex/StatusBarEx.tsx +0 -46
  206. package/examples/ex/WidgetDCFCellEx.tsx +0 -6
  207. package/examples/example.css +0 -20
  208. package/examples/index-iframe.hnottml +0 -24
  209. package/examples/index-react18.tsx +0 -8
  210. package/examples/index.html +0 -20
  211. package/examples/jsx-loader.ts +0 -16
  212. package/examples/tsconfig.json +0 -31
  213. package/index.d.ts +0 -2
  214. package/index.d.ts.map +0 -1
  215. package/index.js +0 -7
  216. package/index.js.map +0 -1
  217. package/jest.config.js +0 -24
  218. package/screen-animation.gif +0 -0
  219. package/src/buckaroo_js/baked_data/colorMap.ts +0 -523
  220. package/src/buckaroo_js/baked_data/staticData.ts +0 -503
  221. package/src/buckaroo_js/components/ColumnsEditor.tsx +0 -66
  222. package/src/buckaroo_js/components/CommandUtils.ts +0 -40
  223. package/src/buckaroo_js/components/DCFCell.tsx +0 -175
  224. package/src/buckaroo_js/components/DFViewerParts/DFViewer.tsx +0 -215
  225. package/src/buckaroo_js/components/DFViewerParts/DFWhole.ts +0 -190
  226. package/src/buckaroo_js/components/DFViewerParts/Displayer.ts +0 -218
  227. package/src/buckaroo_js/components/DFViewerParts/OtherRenderers.tsx +0 -28
  228. package/src/buckaroo_js/components/DFViewerParts/SeriesSummaryTooltip.tsx +0 -20
  229. package/src/buckaroo_js/components/DFViewerParts/gridUtils.ts +0 -291
  230. package/src/buckaroo_js/components/DependentTabs.tsx +0 -134
  231. package/src/buckaroo_js/components/OperationDetail.tsx +0 -203
  232. package/src/buckaroo_js/components/OperationUtils.ts +0 -33
  233. package/src/buckaroo_js/components/Operations.tsx +0 -243
  234. package/src/buckaroo_js/components/StatusBar.tsx +0 -190
  235. package/src/buckaroo_js/components/WidgetTypes.tsx +0 -42
  236. package/src/buckaroo_js/components/bakedOperationDefaults.ts +0 -14
  237. package/src/buckaroo_js/components/utils.ts +0 -60
  238. package/src/buckaroo_js/extension.ts +0 -15
  239. package/src/buckaroo_js/index.ts +0 -32
  240. package/src/buckaroo_js/style/dcf-npm.css +0 -244
  241. package/src/buckaroo_js/style/icons/arrow-down-short-dark.svg +0 -4
  242. package/src/buckaroo_js/style/icons/arrow-down-short.svg +0 -4
  243. package/src/buckaroo_js/style/icons/arrow-up-short-dark.svg +0 -4
  244. package/src/buckaroo_js/style/icons/arrow-up-short.svg +0 -4
  245. package/src/buckaroo_js/style/icons/filter-dark.svg +0 -3
  246. package/src/buckaroo_js/style/icons/filter.svg +0 -3
  247. package/src/index.tsx +0 -3
  248. package/tsconfig.json +0 -41
  249. package/webpack.config.ts +0 -98
package/LICENSE CHANGED
@@ -1,15 +1,27 @@
1
- ISC License
1
+ Copyright (c) 2019 Bloomberg
2
+ All rights reserved.
2
3
 
3
- Copyright (c) 2022, Momtchil Momtchev <momtchil@momtchev.com>
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
4
6
 
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
7
+ 1. Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
8
9
 
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
10
+ 2. Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ 3. Neither the name of the copyright holder nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,66 +1,70 @@
1
- # react-edit-list
1
+ # buckaroo-js-core
2
2
 
3
- [![License: ISC](https://img.shields.io/github/license/mmomtchev/react-edit-list)](https://github.com/mmomtchev/react-edit-list/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/react-edit-list)](https://www.npmjs.com/package/react-edit-list) [![Node.js CI](https://github.com/mmomtchev/react-edit-list/workflows/Node.js%20CI/badge.svg)](https://github.com/mmomtchev/react-edit-list/actions?query=workflow%3A%22Node.js+CI%22) [![codecov](https://codecov.io/gh/mmomtchev/react-edit-list/branch/main/graph/badge.svg?token=ZHVvNADJrZ)](https://codecov.io/gh/mmomtchev/react-edit-list)
3
+ React + AG-Grid components and the infinite-scroll data layer that power the [Buckaroo](https://github.com/paddymul/buckaroo) DataFrame viewer.
4
4
 
5
- Universal Editable List React Component
5
+ This package is the framework-agnostic JS half of Buckaroo. The Python widget side ships it bundled inside `buckaroo` on PyPI; you only need to install this package directly if you are:
6
6
 
7
- `react-edit-list` allows for easy creation of editable lists in React that can be interfaced with a database
7
+ - embedding the DataFrame viewer in a React app outside Jupyter (e.g. a SPA),
8
+ - building a custom widget shell against a different host, or
9
+ - developing Buckaroo itself.
8
10
 
9
- * Fully customizable
10
- * Zero-dependency
11
- * Supports async callbacks for calling externals APIs
12
- * Supports input validation
13
- * Supports optional `null` fields
14
- * Supports custom field types
11
+ ## Install
15
12
 
16
- # Installation
17
-
18
- ```shell
19
- npm i --save react-edit-layers
13
+ ```sh
14
+ npm install buckaroo-js-core
15
+ # or
16
+ pnpm add buckaroo-js-core
17
+ # or
18
+ yarn add buckaroo-js-core
20
19
  ```
21
20
 
22
- # Usage
23
-
24
- Refer to the [examples](https://mmomtchev.github.io/react-edit-list/)
25
-
26
- ![screenshot](https://raw.githubusercontent.com/mmomtchev/react-edit-list/main/screen-animation.gif)
27
-
28
- # API
29
-
30
- <!-- Generated by documentation.js. Update this documentation by updating the source code. -->
31
-
32
- ### Table of Contents
33
-
34
- * [\_](#\_)
35
- * [AnimationTiming](#animationtiming)
36
- * [AnimationDuration](#animationduration)
37
- * [React](#react)
38
- * [defaultProps](#defaultprops)
39
-
40
- ## \_
41
-
42
- This module contains the standard library from rechart so that base rechart code cna be imported with the minimum amount of rewriting
43
-
44
- ## AnimationTiming
45
-
46
- The type of easing function to use for animations
47
-
48
- Type: (`"ease"` | `"ease-in"` | `"ease-out"` | `"ease-in-out"` | `"linear"`)
21
+ React 18 is a peer dependency.
22
+
23
+ ## Usage
24
+
25
+ ```tsx
26
+ import { DFViewer } from "buckaroo-js-core";
27
+ import "buckaroo-js-core/style.css";
28
+
29
+ export function App() {
30
+ return (
31
+ <DFViewer
32
+ df_data={[{ index: 0, a: 1 }, { index: 1, a: 2 }]}
33
+ df_viewer_config={{
34
+ pinned_rows: [],
35
+ left_col_configs: [],
36
+ column_config: [
37
+ { col_name: "index", header_name: "index", displayer_args: { displayer: "obj" } },
38
+ { col_name: "a", header_name: "a", displayer_args: { displayer: "obj" } },
39
+ ],
40
+ }}
41
+ />
42
+ );
43
+ }
44
+ ```
49
45
 
50
- ## AnimationDuration
46
+ Higher-level components are also exported:
51
47
 
52
- Specifies the duration of animation, the unit of this option is ms.
48
+ - `DFViewer` render a static array of rows
49
+ - `DFViewerInfinite` — infinite-scroll grid backed by an AG-Grid datasource
50
+ - `DFViewerInfiniteDS` — datasource-driven grid wired to a `KeyAwareSmartRowCache`
51
+ - `BuckarooInfiniteWidget` — the full Buckaroo UI (status bar + grid + columns editor)
52
+ - `getKeySmartRowCache` — factory that wires a model's `infinite_request` / `infinite_resp` messages into a row cache
53
53
 
54
- Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
54
+ See `src/index.ts` for the full export surface.
55
55
 
56
- ## React
56
+ ## Development
57
57
 
58
- Reimplementation of rechart tooltips. most of this is copied from ??? in the recharts source tree because the parts we are editting are deeply embedded into functions.
58
+ ```sh
59
+ pnpm install
60
+ pnpm run build # tsc -b && vite build
61
+ pnpm test # jest
62
+ pnpm run test:pw # Playwright against Storybook
63
+ pnpm storybook # interactive component dev
64
+ ```
59
65
 
60
- Most of the point of this is to get tooltips to be absolutely positioned off of document.body, not the nearest parent element. AG-Grid hides those tooltips otherwise.
66
+ The package is part of the Buckaroo pnpm workspace at the repo root; see the [main README](https://github.com/paddymul/buckaroo) for the full build/release flow.
61
67
 
62
- ## defaultProps
68
+ ## License
63
69
 
64
- needs to be set so that renderByOrder can access an have default values for
65
- children.props when there are no props set by the consumer
66
- doesn't work if using default parameters
70
+ [BSD-3-Clause](./LICENSE)