@aiquants/daily-report 0.35.0 → 0.36.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-ChA4KOE1.mjs";
5
+ import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-pzx3O8_h.mjs";
6
6
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
7
7
  import { ShouldRevalidateFunction } from "react-router";
8
8
  import "zod";
@@ -96,7 +96,6 @@ type DailyReportLabels = VirtualScrollLabels & {
96
96
  readonly contentEmpty: string;
97
97
  readonly contentEmptyPreview: string;
98
98
  readonly confirmDelete: string;
99
- readonly deleteFailed: string;
100
99
  readonly starAdd: string;
101
100
  readonly starRemove: string;
102
101
  readonly markRead: string;
@@ -128,6 +127,8 @@ type DailyReportLabels = VirtualScrollLabels & {
128
127
  readonly searching: string;
129
128
  readonly searchNoHits: string;
130
129
  readonly searchSyntaxHelp: string;
130
+ readonly searchMatchOutsideView: string;
131
+ readonly searchMatchOutsideViewDescription: string;
131
132
  readonly totalCount: (count: number) => string;
132
133
  readonly debounce: (milliseconds: number) => string;
133
134
  readonly streamProgressCount: (loaded: number) => string;
@@ -146,6 +147,8 @@ type DailyReportLabels = VirtualScrollLabels & {
146
147
  readonly listRowPositionInUnknownTotal: (position: number) => string;
147
148
  readonly searchHitCount: (count: number) => string;
148
149
  readonly searchFailed: (failure: DailyReportSearchFailure) => string;
150
+ readonly searchMatchedKeywords: (matched: number, total: number) => string;
151
+ readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
149
152
  };
150
153
  type DailyReportLabelOverrides = {
151
154
  readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
@@ -213,7 +216,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
213
216
  "contentEmpty",
214
217
  "contentEmptyPreview",
215
218
  "confirmDelete",
216
- "deleteFailed",
217
219
  "starAdd",
218
220
  "starRemove",
219
221
  "markRead",
@@ -245,6 +247,8 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
245
247
  "searching",
246
248
  "searchNoHits",
247
249
  "searchSyntaxHelp",
250
+ "searchMatchOutsideView",
251
+ "searchMatchOutsideViewDescription",
248
252
  "totalCount",
249
253
  "debounce",
250
254
  "streamProgressCount",
@@ -259,7 +263,9 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
259
263
  "listRowPosition",
260
264
  "listRowPositionInUnknownTotal",
261
265
  "searchHitCount",
262
- "searchFailed"
266
+ "searchFailed",
267
+ "searchMatchedKeywords",
268
+ "searchMatchedKeywordsDescription"
263
269
  ];
264
270
  declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
265
271
  declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
@@ -466,12 +472,15 @@ type DailyReportActionFunctions = {
466
472
  refetchData: () => Promise<void>;
467
473
  clearCacheAndRefetch: () => Promise<void>;
468
474
  };
475
+ type DailyReportLedgerView<Contents> = {
476
+ readonly current: Contents;
477
+ };
469
478
  type DailyReportActionLedgers = {
470
- pendingAddCommentIds: React.MutableRefObject<Map<number, Map<number, string>>>;
471
- pendingDeleteCommentIds: React.MutableRefObject<Map<number, Set<number>>>;
472
- pendingStarUpdates: React.MutableRefObject<Map<number, boolean>>;
473
- pendingReadUpdates: React.MutableRefObject<Map<number, boolean>>;
474
- resolvedIdMap: React.MutableRefObject<Map<number, number>>;
479
+ readonly pendingAddCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlyMap<number, string>>>;
480
+ readonly pendingDeleteCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlySet<number>>>;
481
+ readonly pendingStarUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
482
+ readonly pendingReadUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
483
+ readonly resolvedIdMap: DailyReportLedgerView<ReadonlyMap<number, number>>;
475
484
  };
476
485
  type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers & {
477
486
  user?: DailyReportUser;
@@ -513,7 +522,7 @@ declare const useDailyReportComments: (report: DailyReportDetail | null, user: P
513
522
  handleDeleteComment: (cId: number) => Promise<void> | null;
514
523
  pendingDeleteId: string | number | null;
515
524
  setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
516
- resolvedIdMap: Map<number, number>;
525
+ resolvedIdMap: ReadonlyMap<number, number>;
517
526
  };
518
527
  declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
519
528
  declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
@@ -526,4 +535,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
526
535
  };
527
536
  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]";
528
537
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
529
- 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, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamItemReplacement, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportSearchFailure, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
538
+ 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, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamItemReplacement, 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 DailyReportSearchFailure, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
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-DqBqtqfA.js";
5
+ import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-BvGGQkBE.js";
6
6
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
7
7
  import { ShouldRevalidateFunction } from "react-router";
8
8
  import "zod";
@@ -96,7 +96,6 @@ type DailyReportLabels = VirtualScrollLabels & {
96
96
  readonly contentEmpty: string;
97
97
  readonly contentEmptyPreview: string;
98
98
  readonly confirmDelete: string;
99
- readonly deleteFailed: string;
100
99
  readonly starAdd: string;
101
100
  readonly starRemove: string;
102
101
  readonly markRead: string;
@@ -128,6 +127,8 @@ type DailyReportLabels = VirtualScrollLabels & {
128
127
  readonly searching: string;
129
128
  readonly searchNoHits: string;
130
129
  readonly searchSyntaxHelp: string;
130
+ readonly searchMatchOutsideView: string;
131
+ readonly searchMatchOutsideViewDescription: string;
131
132
  readonly totalCount: (count: number) => string;
132
133
  readonly debounce: (milliseconds: number) => string;
133
134
  readonly streamProgressCount: (loaded: number) => string;
@@ -146,6 +147,8 @@ type DailyReportLabels = VirtualScrollLabels & {
146
147
  readonly listRowPositionInUnknownTotal: (position: number) => string;
147
148
  readonly searchHitCount: (count: number) => string;
148
149
  readonly searchFailed: (failure: DailyReportSearchFailure) => string;
150
+ readonly searchMatchedKeywords: (matched: number, total: number) => string;
151
+ readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
149
152
  };
150
153
  type DailyReportLabelOverrides = {
151
154
  readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
@@ -213,7 +216,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
213
216
  "contentEmpty",
214
217
  "contentEmptyPreview",
215
218
  "confirmDelete",
216
- "deleteFailed",
217
219
  "starAdd",
218
220
  "starRemove",
219
221
  "markRead",
@@ -245,6 +247,8 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
245
247
  "searching",
246
248
  "searchNoHits",
247
249
  "searchSyntaxHelp",
250
+ "searchMatchOutsideView",
251
+ "searchMatchOutsideViewDescription",
248
252
  "totalCount",
249
253
  "debounce",
250
254
  "streamProgressCount",
@@ -259,7 +263,9 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
259
263
  "listRowPosition",
260
264
  "listRowPositionInUnknownTotal",
261
265
  "searchHitCount",
262
- "searchFailed"
266
+ "searchFailed",
267
+ "searchMatchedKeywords",
268
+ "searchMatchedKeywordsDescription"
263
269
  ];
264
270
  declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
265
271
  declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
@@ -466,12 +472,15 @@ type DailyReportActionFunctions = {
466
472
  refetchData: () => Promise<void>;
467
473
  clearCacheAndRefetch: () => Promise<void>;
468
474
  };
475
+ type DailyReportLedgerView<Contents> = {
476
+ readonly current: Contents;
477
+ };
469
478
  type DailyReportActionLedgers = {
470
- pendingAddCommentIds: React.MutableRefObject<Map<number, Map<number, string>>>;
471
- pendingDeleteCommentIds: React.MutableRefObject<Map<number, Set<number>>>;
472
- pendingStarUpdates: React.MutableRefObject<Map<number, boolean>>;
473
- pendingReadUpdates: React.MutableRefObject<Map<number, boolean>>;
474
- resolvedIdMap: React.MutableRefObject<Map<number, number>>;
479
+ readonly pendingAddCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlyMap<number, string>>>;
480
+ readonly pendingDeleteCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlySet<number>>>;
481
+ readonly pendingStarUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
482
+ readonly pendingReadUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
483
+ readonly resolvedIdMap: DailyReportLedgerView<ReadonlyMap<number, number>>;
475
484
  };
476
485
  type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers & {
477
486
  user?: DailyReportUser;
@@ -513,7 +522,7 @@ declare const useDailyReportComments: (report: DailyReportDetail | null, user: P
513
522
  handleDeleteComment: (cId: number) => Promise<void> | null;
514
523
  pendingDeleteId: string | number | null;
515
524
  setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
516
- resolvedIdMap: Map<number, number>;
525
+ resolvedIdMap: ReadonlyMap<number, number>;
517
526
  };
518
527
  declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
519
528
  declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
@@ -526,4 +535,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
526
535
  };
527
536
  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]";
528
537
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
529
- 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, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamItemReplacement, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportSearchFailure, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
538
+ 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, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamItemReplacement, 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 DailyReportSearchFailure, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };