@aiquants/daily-report 0.43.0 → 0.44.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,12 +1,15 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
- import { D as DailyReportItem, a as DailyReportSseStreamAnchor, b as DailyReportUser, c as DailyReportSseTerminalEvent, d as DailyReportSseMessage, e as DailyReportDetail } from "./sse-schema-Br0b278w.mjs";
4
- import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
- import { D as DailyReportActionIntent, U as UIComment } from "./source-types-NkQm-gNO.mjs";
6
- export { f as foldDailyReportSourceTypeToken } from "./source-types-NkQm-gNO.mjs";
3
+ import { D as DailyReportRows } from "./instrumentation-CobsTeyw.mjs";
4
+ export { a as DailyReportInstrumentation, b as DailyReportInstrumentationContext, I as DailyReportInstrumentedView, L as DailyReportListNavigationHandle, c as DailyReportRevealOptions, V as DailyReportViewInstrumentation } from "./instrumentation-CobsTeyw.mjs";
5
+ import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-BP1kIGMo.mjs";
6
+ import { VirtualScrollLocale, VirtualScrollLabels } from "@aiquants/virtualscroll";
7
+ import { D as DailyReportActionIntent, U as UIComment } from "./source-types-Hy_znWJl.mjs";
8
+ export { f as foldDailyReportSourceTypeToken } from "./source-types-Hy_znWJl.mjs";
7
9
  import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.mjs";
8
10
  export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.mjs";
9
11
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
12
+ import { D as DailyReportSseStreamAnchor, a as DailyReportSseTerminalEvent, b as DailyReportSseMessage } from "./sse-schema-sKBorzg9.mjs";
10
13
  import { ShouldRevalidateFunction } from "react-router";
11
14
  import "zod/v3";
12
15
  type DailyReportAttachmentIndicatorProps = {
@@ -15,7 +18,7 @@ type DailyReportAttachmentIndicatorProps = {
15
18
  label: string;
16
19
  };
17
20
  declare const DailyReportAttachmentIndicator: ({ id, count, label }: DailyReportAttachmentIndicatorProps) => react.JSX.Element | null;
18
- type DailyReportRows = Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
21
+ type DailyReportSelectionPhase = "held" | "settled";
19
22
  type DailyReportDetailListScrollRestore = {
20
23
  topItem: {
21
24
  reportHubId: number;
@@ -30,7 +33,7 @@ type DailyReportDetailListProps = {
30
33
  rowSetSize?: number;
31
34
  userId?: string | null;
32
35
  selectedItemId?: number | null;
33
- onSelectItem?: (id: number | null) => void;
36
+ onSelectItem?: (id: number | null, phase: DailyReportSelectionPhase) => void;
34
37
  scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
35
38
  };
36
39
  declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
@@ -334,7 +337,7 @@ type DailyReportListProps = {
334
337
  rowSetSize?: number;
335
338
  autoMarkRead?: boolean;
336
339
  selectedReportHubId: number | null;
337
- onSelectItem: (reportHubId: number | null) => void;
340
+ onSelectItem: (reportHubId: number | null, phase: DailyReportSelectionPhase) => void;
338
341
  userId?: string | null;
339
342
  scrollOffsetRef?: RefObject<number>;
340
343
  };
@@ -412,23 +415,6 @@ type DailyReportResolvedContentProps = {
412
415
  userId?: string | null;
413
416
  };
414
417
  declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
415
- type ListNavigationHandle = Pick<VirtualScrollHandle, "getViewportSize" | "getScrollPosition" | "getScrollAnchor">;
416
- type ListScrollToIndexOptions = NonNullable<Parameters<VirtualScrollHandle["scrollToIndex"]>[1]>;
417
- type ViewTestReadHandle = ListNavigationHandle & Pick<VirtualScrollHandle, "getRange" | "getFenwickSize">;
418
- type ViewTestHandle = ViewTestReadHandle & {
419
- readonly findReportIndex: (id: number) => number;
420
- readonly getReportItem: (index: number) => DailyReportItem | undefined;
421
- readonly getReportIds: (limit?: number) => number[];
422
- readonly revealIndex: (index: number, options: ListScrollToIndexOptions) => void;
423
- readonly rowPass: {
424
- readonly counters: () => {
425
- readonly syncReleases: number;
426
- readonly oversizeFrames: number;
427
- readonly lateFrames: number;
428
- readonly lateForcedFrames: number;
429
- };
430
- };
431
- };
432
418
  type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
433
419
  readonly kind: "resyncing";
434
420
  };
@@ -520,4 +506,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
520
506
  };
521
507
  declare const LATTICE_BLOCK_QUANTUM_CLASS_NAME = "[--aqdr-lattice-block:4px] [@media(resolution:1.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.875dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.875dppx)]:[--aqdr-lattice-block:8px]";
522
508
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
523
- export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportRowBatch, type DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
509
+ export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type DailyReportRowBatch, DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSelectionPhase, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
package/dist/client.d.ts CHANGED
@@ -1,12 +1,15 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
- import { D as DailyReportItem, a as DailyReportSseStreamAnchor, b as DailyReportUser, c as DailyReportSseTerminalEvent, d as DailyReportSseMessage, e as DailyReportDetail } from "./sse-schema-Br0b278w.js";
4
- import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
- import { D as DailyReportActionIntent, U as UIComment } from "./source-types-Bu-_yfcY.js";
6
- export { f as foldDailyReportSourceTypeToken } from "./source-types-Bu-_yfcY.js";
3
+ import { D as DailyReportRows } from "./instrumentation-Dz7Uh7dT.js";
4
+ export { a as DailyReportInstrumentation, b as DailyReportInstrumentationContext, I as DailyReportInstrumentedView, L as DailyReportListNavigationHandle, c as DailyReportRevealOptions, V as DailyReportViewInstrumentation } from "./instrumentation-Dz7Uh7dT.js";
5
+ import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-BP1kIGMo.js";
6
+ import { VirtualScrollLocale, VirtualScrollLabels } from "@aiquants/virtualscroll";
7
+ import { D as DailyReportActionIntent, U as UIComment } from "./source-types-Cg7T2dm6.js";
8
+ export { f as foldDailyReportSourceTypeToken } from "./source-types-Cg7T2dm6.js";
7
9
  import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.js";
8
10
  export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.js";
9
11
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
12
+ import { D as DailyReportSseStreamAnchor, a as DailyReportSseTerminalEvent, b as DailyReportSseMessage } from "./sse-schema-BcjRPJjN.js";
10
13
  import { ShouldRevalidateFunction } from "react-router";
11
14
  import "zod/v3";
12
15
  type DailyReportAttachmentIndicatorProps = {
@@ -15,7 +18,7 @@ type DailyReportAttachmentIndicatorProps = {
15
18
  label: string;
16
19
  };
17
20
  declare const DailyReportAttachmentIndicator: ({ id, count, label }: DailyReportAttachmentIndicatorProps) => react.JSX.Element | null;
18
- type DailyReportRows = Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
21
+ type DailyReportSelectionPhase = "held" | "settled";
19
22
  type DailyReportDetailListScrollRestore = {
20
23
  topItem: {
21
24
  reportHubId: number;
@@ -30,7 +33,7 @@ type DailyReportDetailListProps = {
30
33
  rowSetSize?: number;
31
34
  userId?: string | null;
32
35
  selectedItemId?: number | null;
33
- onSelectItem?: (id: number | null) => void;
36
+ onSelectItem?: (id: number | null, phase: DailyReportSelectionPhase) => void;
34
37
  scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
35
38
  };
36
39
  declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
@@ -334,7 +337,7 @@ type DailyReportListProps = {
334
337
  rowSetSize?: number;
335
338
  autoMarkRead?: boolean;
336
339
  selectedReportHubId: number | null;
337
- onSelectItem: (reportHubId: number | null) => void;
340
+ onSelectItem: (reportHubId: number | null, phase: DailyReportSelectionPhase) => void;
338
341
  userId?: string | null;
339
342
  scrollOffsetRef?: RefObject<number>;
340
343
  };
@@ -412,23 +415,6 @@ type DailyReportResolvedContentProps = {
412
415
  userId?: string | null;
413
416
  };
414
417
  declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
415
- type ListNavigationHandle = Pick<VirtualScrollHandle, "getViewportSize" | "getScrollPosition" | "getScrollAnchor">;
416
- type ListScrollToIndexOptions = NonNullable<Parameters<VirtualScrollHandle["scrollToIndex"]>[1]>;
417
- type ViewTestReadHandle = ListNavigationHandle & Pick<VirtualScrollHandle, "getRange" | "getFenwickSize">;
418
- type ViewTestHandle = ViewTestReadHandle & {
419
- readonly findReportIndex: (id: number) => number;
420
- readonly getReportItem: (index: number) => DailyReportItem | undefined;
421
- readonly getReportIds: (limit?: number) => number[];
422
- readonly revealIndex: (index: number, options: ListScrollToIndexOptions) => void;
423
- readonly rowPass: {
424
- readonly counters: () => {
425
- readonly syncReleases: number;
426
- readonly oversizeFrames: number;
427
- readonly lateFrames: number;
428
- readonly lateForcedFrames: number;
429
- };
430
- };
431
- };
432
418
  type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
433
419
  readonly kind: "resyncing";
434
420
  };
@@ -520,4 +506,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
520
506
  };
521
507
  declare const LATTICE_BLOCK_QUANTUM_CLASS_NAME = "[--aqdr-lattice-block:4px] [@media(resolution:1.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.875dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.875dppx)]:[--aqdr-lattice-block:8px]";
522
508
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
523
- export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportRowBatch, type DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
509
+ export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type DailyReportRowBatch, DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSelectionPhase, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };