@aiquants/daily-report 0.36.0 → 0.37.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/client.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
3
  import { D as DailyReportItem, a as DailyReportUser, b as DailyReportSseTerminalEvent, c as DailyReportSseMessage, d as DailyReportDetail } from "./sse-schema-getLS62T.mjs";
4
4
  import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
- import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-pzx3O8_h.mjs";
5
+ import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-_h3W1duG.mjs";
6
6
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
7
7
  import { ShouldRevalidateFunction } from "react-router";
8
8
  import "zod";
@@ -22,7 +22,7 @@ type DailyReportDetailListScrollRestore = {
22
22
  measuredHeights: Map<number, number>;
23
23
  };
24
24
  type DailyReportDetailListProps = {
25
- dailyReportItems: DailyReportItem[];
25
+ dailyReportItems: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
26
26
  rowSetSize?: number;
27
27
  userId?: string | null;
28
28
  selectedItemId?: number | null;
@@ -32,7 +32,7 @@ type DailyReportDetailListProps = {
32
32
  declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
33
33
  declare const DailyReportIdsStreamStatus: () => react.JSX.Element;
34
34
  type DailyReportListProps = {
35
- dailyReportItems: DailyReportItem[];
35
+ dailyReportItems: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
36
36
  rowSetSize?: number;
37
37
  autoMarkRead?: boolean;
38
38
  selectedReportHubId: number | null;
@@ -129,6 +129,7 @@ type DailyReportLabels = VirtualScrollLabels & {
129
129
  readonly searchSyntaxHelp: string;
130
130
  readonly searchMatchOutsideView: string;
131
131
  readonly searchMatchOutsideViewDescription: string;
132
+ readonly searchReadingMarkDescription: string;
132
133
  readonly totalCount: (count: number) => string;
133
134
  readonly debounce: (milliseconds: number) => string;
134
135
  readonly streamProgressCount: (loaded: number) => string;
@@ -249,6 +250,7 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
249
250
  "searchSyntaxHelp",
250
251
  "searchMatchOutsideView",
251
252
  "searchMatchOutsideViewDescription",
253
+ "searchReadingMarkDescription",
252
254
  "totalCount",
253
255
  "debounce",
254
256
  "streamProgressCount",
@@ -401,7 +403,7 @@ declare class DailyReportIdsStreamClient {
401
403
  private runStreamLoop;
402
404
  private pruneUnseenItems;
403
405
  private streamOnce;
404
- private readWithStallGuard;
406
+ private watchReadSilence;
405
407
  private absorbChunkLine;
406
408
  private putItem;
407
409
  private deleteItem;
@@ -487,7 +489,7 @@ type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers
487
489
  };
488
490
  type DailyReportActionState = {
489
491
  version: number;
490
- items: DailyReportItem[];
492
+ items: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
491
493
  isSseEnabled: boolean;
492
494
  sseStatus: DailyReportSseConnectionStatus;
493
495
  searchInvalidation: string;
package/dist/client.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
3
  import { D as DailyReportItem, a as DailyReportUser, b as DailyReportSseTerminalEvent, c as DailyReportSseMessage, d as DailyReportDetail } from "./sse-schema-getLS62T.js";
4
4
  import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
- import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-BvGGQkBE.js";
5
+ import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-DOUwSlKf.js";
6
6
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
7
7
  import { ShouldRevalidateFunction } from "react-router";
8
8
  import "zod";
@@ -22,7 +22,7 @@ type DailyReportDetailListScrollRestore = {
22
22
  measuredHeights: Map<number, number>;
23
23
  };
24
24
  type DailyReportDetailListProps = {
25
- dailyReportItems: DailyReportItem[];
25
+ dailyReportItems: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
26
26
  rowSetSize?: number;
27
27
  userId?: string | null;
28
28
  selectedItemId?: number | null;
@@ -32,7 +32,7 @@ type DailyReportDetailListProps = {
32
32
  declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
33
33
  declare const DailyReportIdsStreamStatus: () => react.JSX.Element;
34
34
  type DailyReportListProps = {
35
- dailyReportItems: DailyReportItem[];
35
+ dailyReportItems: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
36
36
  rowSetSize?: number;
37
37
  autoMarkRead?: boolean;
38
38
  selectedReportHubId: number | null;
@@ -129,6 +129,7 @@ type DailyReportLabels = VirtualScrollLabels & {
129
129
  readonly searchSyntaxHelp: string;
130
130
  readonly searchMatchOutsideView: string;
131
131
  readonly searchMatchOutsideViewDescription: string;
132
+ readonly searchReadingMarkDescription: string;
132
133
  readonly totalCount: (count: number) => string;
133
134
  readonly debounce: (milliseconds: number) => string;
134
135
  readonly streamProgressCount: (loaded: number) => string;
@@ -249,6 +250,7 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
249
250
  "searchSyntaxHelp",
250
251
  "searchMatchOutsideView",
251
252
  "searchMatchOutsideViewDescription",
253
+ "searchReadingMarkDescription",
252
254
  "totalCount",
253
255
  "debounce",
254
256
  "streamProgressCount",
@@ -401,7 +403,7 @@ declare class DailyReportIdsStreamClient {
401
403
  private runStreamLoop;
402
404
  private pruneUnseenItems;
403
405
  private streamOnce;
404
- private readWithStallGuard;
406
+ private watchReadSilence;
405
407
  private absorbChunkLine;
406
408
  private putItem;
407
409
  private deleteItem;
@@ -487,7 +489,7 @@ type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers
487
489
  };
488
490
  type DailyReportActionState = {
489
491
  version: number;
490
- items: DailyReportItem[];
492
+ items: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
491
493
  isSseEnabled: boolean;
492
494
  sseStatus: DailyReportSseConnectionStatus;
493
495
  searchInvalidation: string;