@aiquants/daily-report 0.26.0 → 0.28.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
@@ -1,7 +1,7 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
3
  import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-DkERw8NE.mjs";
4
- import { VirtualScrollLocale, VirtualScrollLabels } from "@aiquants/virtualscroll";
4
+ import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
5
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
6
6
  import { D as DailyReportSseTerminalEvent, a as DailyReportSseMessage, U as UIComment, b as DailyReportSseStreamAnchor } from "./ids-stream-DvB2h1dj.mjs";
7
7
  import { ShouldRevalidateFunction } from "react-router";
@@ -137,6 +137,10 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
137
137
  "scrollDown",
138
138
  "scrollLeft",
139
139
  "scrollRight",
140
+ "verticalScrollBar",
141
+ "horizontalScrollBar",
142
+ "verticalScrollThumb",
143
+ "horizontalScrollThumb",
140
144
  "scrollToTop",
141
145
  "scrollToBottom",
142
146
  "noItems",
@@ -277,6 +281,15 @@ type DailyReportResolvedContentProps = {
277
281
  userId?: string | null;
278
282
  };
279
283
  declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
284
+ type ListNavigationHandle = Pick<VirtualScrollHandle, "getViewportSize" | "getScrollPosition" | "getScrollAnchor">;
285
+ type ListScrollToIndexOptions = NonNullable<Parameters<VirtualScrollHandle["scrollToIndex"]>[1]>;
286
+ type ViewTestReadHandle = ListNavigationHandle & Pick<VirtualScrollHandle, "getRange" | "getFenwickSize">;
287
+ type ViewTestHandle = ViewTestReadHandle & {
288
+ readonly findReportIndex: (id: number) => number;
289
+ readonly getReportItem: (index: number) => DailyReportItem | undefined;
290
+ readonly getReportIds: (limit?: number) => number[];
291
+ readonly revealIndex: (index: number, options: ListScrollToIndexOptions) => void;
292
+ };
280
293
  type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
281
294
  readonly kind: "resyncing";
282
295
  };
@@ -450,4 +463,5 @@ declare const bootstrapDailyReportIdsStreamSession: (options: {
450
463
  declare const primeDailyReportIdsStreamSession: () => void;
451
464
  declare const resyncDailyReportIdsStream: () => void;
452
465
  declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
453
- export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, DailyReportActionProvider, DailyReportAttachmentIndicator, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportErrorInfo, DailyReportErrorProvider, DailyReportIdsStreamClient, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type DailyReportLocale, type DailyReportOperation, DailyReportPage, DailyReportResolvedContent, type DailyReportSseConnectionStatus, type SourceTypeConfig, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
466
+ declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
467
+ export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, DAILY_REPORT_LAYOUT_LATTICE_PX, DailyReportActionProvider, DailyReportAttachmentIndicator, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportErrorInfo, DailyReportErrorProvider, DailyReportIdsStreamClient, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type DailyReportLocale, type DailyReportOperation, DailyReportPage, DailyReportResolvedContent, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
3
  import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-DkERw8NE.js";
4
- import { VirtualScrollLocale, VirtualScrollLabels } from "@aiquants/virtualscroll";
4
+ import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
5
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
6
6
  import { D as DailyReportSseTerminalEvent, a as DailyReportSseMessage, U as UIComment, b as DailyReportSseStreamAnchor } from "./ids-stream-BR5RSj5u.js";
7
7
  import { ShouldRevalidateFunction } from "react-router";
@@ -137,6 +137,10 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
137
137
  "scrollDown",
138
138
  "scrollLeft",
139
139
  "scrollRight",
140
+ "verticalScrollBar",
141
+ "horizontalScrollBar",
142
+ "verticalScrollThumb",
143
+ "horizontalScrollThumb",
140
144
  "scrollToTop",
141
145
  "scrollToBottom",
142
146
  "noItems",
@@ -277,6 +281,15 @@ type DailyReportResolvedContentProps = {
277
281
  userId?: string | null;
278
282
  };
279
283
  declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
284
+ type ListNavigationHandle = Pick<VirtualScrollHandle, "getViewportSize" | "getScrollPosition" | "getScrollAnchor">;
285
+ type ListScrollToIndexOptions = NonNullable<Parameters<VirtualScrollHandle["scrollToIndex"]>[1]>;
286
+ type ViewTestReadHandle = ListNavigationHandle & Pick<VirtualScrollHandle, "getRange" | "getFenwickSize">;
287
+ type ViewTestHandle = ViewTestReadHandle & {
288
+ readonly findReportIndex: (id: number) => number;
289
+ readonly getReportItem: (index: number) => DailyReportItem | undefined;
290
+ readonly getReportIds: (limit?: number) => number[];
291
+ readonly revealIndex: (index: number, options: ListScrollToIndexOptions) => void;
292
+ };
280
293
  type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
281
294
  readonly kind: "resyncing";
282
295
  };
@@ -450,4 +463,5 @@ declare const bootstrapDailyReportIdsStreamSession: (options: {
450
463
  declare const primeDailyReportIdsStreamSession: () => void;
451
464
  declare const resyncDailyReportIdsStream: () => void;
452
465
  declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
453
- export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, DailyReportActionProvider, DailyReportAttachmentIndicator, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportErrorInfo, DailyReportErrorProvider, DailyReportIdsStreamClient, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type DailyReportLocale, type DailyReportOperation, DailyReportPage, DailyReportResolvedContent, type DailyReportSseConnectionStatus, type SourceTypeConfig, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
466
+ declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
467
+ export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, DAILY_REPORT_LAYOUT_LATTICE_PX, DailyReportActionProvider, DailyReportAttachmentIndicator, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportErrorInfo, DailyReportErrorProvider, DailyReportIdsStreamClient, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type DailyReportLocale, type DailyReportOperation, DailyReportPage, DailyReportResolvedContent, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };