@powerportalspro/react 6.0.0 → 6.1.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.
package/dist/index.d.cts CHANGED
@@ -800,6 +800,16 @@ interface ViewDataSource {
800
800
  readonly status: QueryStatus;
801
801
  readonly rows: readonly TableRecord[];
802
802
  readonly totalCount: number | string | null | undefined;
803
+ /**
804
+ * Dataverse's `MoreRecords` flag from the most recent response — the
805
+ * authoritative "is there another page?" signal for sequential paging.
806
+ * Prefer it over comparing rows against {@link totalCount}: the count is
807
+ * computed before the server's per-row permission handlers drop rows,
808
+ * so the rows a consumer accumulates can legitimately fall short of it.
809
+ * `undefined` until the first response lands; `null` when the server
810
+ * didn't report one.
811
+ */
812
+ readonly moreRecords: boolean | null | undefined;
803
813
  readonly columns: readonly ResolvedColumn[];
804
814
  /**
805
815
  * Current user's combined table-level `TableSecurityPermission` mask for
package/dist/index.d.ts CHANGED
@@ -800,6 +800,16 @@ interface ViewDataSource {
800
800
  readonly status: QueryStatus;
801
801
  readonly rows: readonly TableRecord[];
802
802
  readonly totalCount: number | string | null | undefined;
803
+ /**
804
+ * Dataverse's `MoreRecords` flag from the most recent response — the
805
+ * authoritative "is there another page?" signal for sequential paging.
806
+ * Prefer it over comparing rows against {@link totalCount}: the count is
807
+ * computed before the server's per-row permission handlers drop rows,
808
+ * so the rows a consumer accumulates can legitimately fall short of it.
809
+ * `undefined` until the first response lands; `null` when the server
810
+ * didn't report one.
811
+ */
812
+ readonly moreRecords: boolean | null | undefined;
803
813
  readonly columns: readonly ResolvedColumn[];
804
814
  /**
805
815
  * Current user's combined table-level `TableSecurityPermission` mask for
package/dist/index.js CHANGED
@@ -1401,6 +1401,7 @@ function useViewDataSource(options) {
1401
1401
  const rows = data?.tableRecords ?? EMPTY_RECORDS;
1402
1402
  const columns = data?.columns ?? EMPTY_COLUMNS;
1403
1403
  const totalCount = data?.pagingInfo?.totalRecordCount;
1404
+ const moreRecords = data?.pagingInfo?.moreRecords;
1404
1405
  const tablePermissions = data?.tablePermissions;
1405
1406
  const aggregations = options.aggregations ?? EMPTY_AGGREGATION_SPEC;
1406
1407
  const isFetchingAggregations = query.isFetching && debouncedRequest.aggregations !== void 0 && debouncedRequest.aggregations !== null && debouncedRequest.aggregations.length > 0;
@@ -1426,6 +1427,7 @@ function useViewDataSource(options) {
1426
1427
  status: query.status,
1427
1428
  rows,
1428
1429
  totalCount,
1430
+ moreRecords,
1429
1431
  columns,
1430
1432
  tablePermissions,
1431
1433
  aggregationResults,
@@ -1451,6 +1453,7 @@ function useViewDataSource(options) {
1451
1453
  query.status,
1452
1454
  rows,
1453
1455
  totalCount,
1456
+ moreRecords,
1454
1457
  columns,
1455
1458
  tablePermissions,
1456
1459
  aggregationResults,