@mintplayer/react-bootstrap 19.5.0 → 19.6.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.
@@ -13,7 +13,6 @@ const l = e({
13
13
  onRowDblClick: "mp-datatable-row-dblclick",
14
14
  onRowContextMenu: "mp-datatable-row-contextmenu",
15
15
  onSelectionChange: "mp-datatable-selection-change",
16
- onFetchRequest: "mp-datatable-fetch-request",
17
16
  onRowExpand: "mp-datatable-row-expand",
18
17
  onRowCollapse: "mp-datatable-row-collapse",
19
18
  onExpandedIdsChange: "mp-datatable-expanded-ids-change"
@@ -1,5 +1,5 @@
1
1
  import { EventName } from '@lit/react';
2
- import { MpDatatable, RowEventDetail, SortChangeEventDetail, SelectionChangeEventDetail, TreeFetchRequestDetail, TreeRowExpandDetail, TreeExpandedIdsChangeDetail } from '@mintplayer/web-components/datatable';
2
+ import { MpDatatable, RowEventDetail, SortChangeEventDetail, SelectionChangeEventDetail, TreeRowExpandDetail, TreeExpandedIdsChangeDetail } from '@mintplayer/web-components/datatable';
3
3
  /**
4
4
  * React wrapper for `<mp-datatable>`. Side-effect-registers the WC via
5
5
  * the import above. The `events` map surfaces each CustomEvent the WC
@@ -11,11 +11,12 @@ import { MpDatatable, RowEventDetail, SortChangeEventDetail, SelectionChangeEven
11
11
  * properties (not attributes) so Sets/arrays/functions round-trip
12
12
  * correctly.
13
13
  *
14
- * Tree-mode lazy fetch: the WC emits `mp-datatable-fetch-request` when
15
- * it needs children for an expanded row (surfaced here as
16
- * `onFetchRequest`). The consumer resolves the request and calls
17
- * `setFetchResponse(parentId, response)` on the element ref to feed
18
- * the children back into the WC's cache.
14
+ * Server paging: set the `fetch` prop to a callback returning
15
+ * `{ data, totalRecords }`. `createComponent` forwards it to the element's
16
+ * `fetch` property, and the web component owns the whole loop — initial page,
17
+ * on-demand windows, tree children, pagination, sort/perPage reloads. The
18
+ * consumer wires nothing else (no `totalRecords`, no event bridge). Selected
19
+ * row objects arrive on `onSelectionChange`'s `detail.selectedRows`.
19
20
  */
20
21
  export declare const BsDatatable: import('@lit/react').ReactWebComponent<MpDatatable, {
21
22
  onPageChange: EventName<CustomEvent<{
@@ -29,7 +30,6 @@ export declare const BsDatatable: import('@lit/react').ReactWebComponent<MpDatat
29
30
  onRowDblClick: EventName<CustomEvent<RowEventDetail>>;
30
31
  onRowContextMenu: EventName<CustomEvent<RowEventDetail>>;
31
32
  onSelectionChange: EventName<CustomEvent<SelectionChangeEventDetail>>;
32
- onFetchRequest: EventName<CustomEvent<TreeFetchRequestDetail>>;
33
33
  onRowExpand: EventName<CustomEvent<TreeRowExpandDetail>>;
34
34
  onRowCollapse: EventName<CustomEvent<TreeRowExpandDetail>>;
35
35
  onExpandedIdsChange: EventName<CustomEvent<TreeExpandedIdsChangeDetail>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/react-bootstrap",
3
- "version": "19.5.0",
3
+ "version": "19.6.0",
4
4
  "description": "React 19 wrappers around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed React components via @lit/react's createComponent.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "react": "^19.0.0",
29
29
  "react-dom": "^19.0.0",
30
30
  "@lit/react": "^1.0.0",
31
- "@mintplayer/web-components": "^1.0.0"
31
+ "@mintplayer/web-components": "^2.0.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "tslib": "^2.3.0"