@aiquants/daily-report 0.34.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
@@ -1,8 +1,8 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
- import { D as DailyReportItem, a as DailyReportUser, b as DailyReportSseTerminalEvent, c as DailyReportSseMessage, d as DailyReportDetail } from "./sse-schema-DVIUaiAG.mjs";
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-7TduiLiu.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";
@@ -41,6 +41,7 @@ type DailyReportListProps = {
41
41
  scrollOffsetRef?: RefObject<number>;
42
42
  };
43
43
  declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
44
+ type DailyReportSearchFailure = "invalid" | "busy" | "unavailable" | "failed";
44
45
  type DailyReportLocale = VirtualScrollLocale;
45
46
  type DailyReportOperation = Exclude<DailyReportActionIntent, "clearCache">;
46
47
  type DailyReportLabels = VirtualScrollLabels & {
@@ -95,7 +96,6 @@ type DailyReportLabels = VirtualScrollLabels & {
95
96
  readonly contentEmpty: string;
96
97
  readonly contentEmptyPreview: string;
97
98
  readonly confirmDelete: string;
98
- readonly deleteFailed: string;
99
99
  readonly starAdd: string;
100
100
  readonly starRemove: string;
101
101
  readonly markRead: string;
@@ -117,6 +117,18 @@ type DailyReportLabels = VirtualScrollLabels & {
117
117
  readonly commentDeleteConfirm: string;
118
118
  readonly unknownUser: string;
119
119
  readonly sourceInternal: string;
120
+ readonly searchInputLabel: string;
121
+ readonly searchPlaceholder: string;
122
+ readonly searchCombineAnd: string;
123
+ readonly searchCombineOr: string;
124
+ readonly searchCombineAndTitle: string;
125
+ readonly searchCombineOrTitle: string;
126
+ readonly searchClear: string;
127
+ readonly searching: string;
128
+ readonly searchNoHits: string;
129
+ readonly searchSyntaxHelp: string;
130
+ readonly searchMatchOutsideView: string;
131
+ readonly searchMatchOutsideViewDescription: string;
120
132
  readonly totalCount: (count: number) => string;
121
133
  readonly debounce: (milliseconds: number) => string;
122
134
  readonly streamProgressCount: (loaded: number) => string;
@@ -126,12 +138,17 @@ type DailyReportLabels = VirtualScrollLabels & {
126
138
  readonly reportSummaryLoadFailed: (reportHubId: number) => string;
127
139
  readonly interviewerWithAffiliation: (name: string, affiliation: string) => string;
128
140
  readonly operationFailed: (operation: DailyReportOperation) => string;
141
+ readonly noticeRepeated: (count: number) => string;
129
142
  readonly rowState: (state: {
130
143
  readonly isRead: boolean;
131
144
  readonly isStarred: boolean;
132
145
  }) => string;
133
146
  readonly listRowPosition: (position: number, total: number) => string;
134
147
  readonly listRowPositionInUnknownTotal: (position: number) => string;
148
+ readonly searchHitCount: (count: number) => string;
149
+ readonly searchFailed: (failure: DailyReportSearchFailure) => string;
150
+ readonly searchMatchedKeywords: (matched: number, total: number) => string;
151
+ readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
135
152
  };
136
153
  type DailyReportLabelOverrides = {
137
154
  readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
@@ -199,7 +216,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
199
216
  "contentEmpty",
200
217
  "contentEmptyPreview",
201
218
  "confirmDelete",
202
- "deleteFailed",
203
219
  "starAdd",
204
220
  "starRemove",
205
221
  "markRead",
@@ -221,6 +237,18 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
221
237
  "commentDeleteConfirm",
222
238
  "unknownUser",
223
239
  "sourceInternal",
240
+ "searchInputLabel",
241
+ "searchPlaceholder",
242
+ "searchCombineAnd",
243
+ "searchCombineOr",
244
+ "searchCombineAndTitle",
245
+ "searchCombineOrTitle",
246
+ "searchClear",
247
+ "searching",
248
+ "searchNoHits",
249
+ "searchSyntaxHelp",
250
+ "searchMatchOutsideView",
251
+ "searchMatchOutsideViewDescription",
224
252
  "totalCount",
225
253
  "debounce",
226
254
  "streamProgressCount",
@@ -230,9 +258,14 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
230
258
  "reportSummaryLoadFailed",
231
259
  "interviewerWithAffiliation",
232
260
  "operationFailed",
261
+ "noticeRepeated",
233
262
  "rowState",
234
263
  "listRowPosition",
235
- "listRowPositionInUnknownTotal"
264
+ "listRowPositionInUnknownTotal",
265
+ "searchHitCount",
266
+ "searchFailed",
267
+ "searchMatchedKeywords",
268
+ "searchMatchedKeywordsDescription"
236
269
  ];
237
270
  declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
238
271
  declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
@@ -251,6 +284,12 @@ type SourceTypeConfig = {
251
284
  badgeClassName?: string;
252
285
  allowComment?: boolean;
253
286
  };
287
+ type DailyReportSearchSetting = {
288
+ readonly debounceMs: number | null;
289
+ };
290
+ type DailyReportSearchSettingInput = {
291
+ readonly debounceMs?: number;
292
+ };
254
293
  type DailyReportClientConfig = {
255
294
  apiBasePath: string;
256
295
  ssePath: string;
@@ -263,11 +302,13 @@ type DailyReportClientConfig = {
263
302
  headingLevel: 2 | 3 | 4 | 5;
264
303
  onError?: (info: DailyReportErrorInfo) => void;
265
304
  onSessionExpired: () => void;
305
+ search: DailyReportSearchSetting | null;
266
306
  };
267
- type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired">> & {
307
+ type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired" | "search">> & {
268
308
  locale?: DailyReportLocale;
269
309
  labels?: DailyReportLabelOverrides;
270
310
  onSessionExpired: () => void;
311
+ search?: DailyReportSearchSettingInput;
271
312
  };
272
313
  type DailyReportClientConfigDefaults = Readonly<Pick<DailyReportClientConfig, "apiBasePath" | "ssePath" | "draftLabelName" | "renderHeader" | "showDevControls" | "headingLevel">>;
273
314
  declare const defaultDailyReportClientConfig: DailyReportClientConfigDefaults;
@@ -431,12 +472,15 @@ type DailyReportActionFunctions = {
431
472
  refetchData: () => Promise<void>;
432
473
  clearCacheAndRefetch: () => Promise<void>;
433
474
  };
475
+ type DailyReportLedgerView<Contents> = {
476
+ readonly current: Contents;
477
+ };
434
478
  type DailyReportActionLedgers = {
435
- pendingAddCommentIds: React.MutableRefObject<Map<number, Map<number, string>>>;
436
- pendingDeleteCommentIds: React.MutableRefObject<Map<number, Set<number>>>;
437
- pendingStarUpdates: React.MutableRefObject<Map<number, boolean>>;
438
- pendingReadUpdates: React.MutableRefObject<Map<number, boolean>>;
439
- 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>>;
440
484
  };
441
485
  type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers & {
442
486
  user?: DailyReportUser;
@@ -446,6 +490,9 @@ type DailyReportActionState = {
446
490
  items: DailyReportItem[];
447
491
  isSseEnabled: boolean;
448
492
  sseStatus: DailyReportSseConnectionStatus;
493
+ searchInvalidation: string;
494
+ isReportRemoved: (reportHubId: number) => boolean;
495
+ removedVersion: number;
449
496
  };
450
497
  type DailyReportActionContextType = DailyReportActions & DailyReportActionState;
451
498
  declare global {
@@ -469,23 +516,13 @@ type DailyReportDetailResource = {
469
516
  };
470
517
  declare const useDailyReportDetail: (reportHubId: number, businessDate: string | null) => DailyReportDetailResource;
471
518
  declare const useDailyReportPrefetch: () => (date: string | null) => void;
472
- type User = {
473
- displayName?: string;
474
- name?: {
475
- familyName?: string;
476
- givenName?: string;
477
- };
478
- emails?: {
479
- value: string;
480
- }[];
481
- };
482
- declare const useDailyReportComments: (report: DailyReportDetail | null, user: User | null | undefined, userId?: string | null) => {
519
+ declare const useDailyReportComments: (report: DailyReportDetail | null, user: Pick<DailyReportUser, "displayName" | "name" | "emails"> | null | undefined, userId?: string | null) => {
483
520
  uiComments: UIComment[];
484
521
  handleAddComment: (content: string) => Promise<void>;
485
522
  handleDeleteComment: (cId: number) => Promise<void> | null;
486
523
  pendingDeleteId: string | number | null;
487
524
  setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
488
- resolvedIdMap: Map<number, number>;
525
+ resolvedIdMap: ReadonlyMap<number, number>;
489
526
  };
490
527
  declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
491
528
  declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
@@ -496,5 +533,6 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
496
533
  }): Promise<TServerData>;
497
534
  hydrate: true;
498
535
  };
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]";
499
537
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
500
- 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 };
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
@@ -1,8 +1,8 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
- import { D as DailyReportItem, a as DailyReportUser, b as DailyReportSseTerminalEvent, c as DailyReportSseMessage, d as DailyReportDetail } from "./sse-schema-DVIUaiAG.js";
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-BLfjD6P0.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";
@@ -41,6 +41,7 @@ type DailyReportListProps = {
41
41
  scrollOffsetRef?: RefObject<number>;
42
42
  };
43
43
  declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
44
+ type DailyReportSearchFailure = "invalid" | "busy" | "unavailable" | "failed";
44
45
  type DailyReportLocale = VirtualScrollLocale;
45
46
  type DailyReportOperation = Exclude<DailyReportActionIntent, "clearCache">;
46
47
  type DailyReportLabels = VirtualScrollLabels & {
@@ -95,7 +96,6 @@ type DailyReportLabels = VirtualScrollLabels & {
95
96
  readonly contentEmpty: string;
96
97
  readonly contentEmptyPreview: string;
97
98
  readonly confirmDelete: string;
98
- readonly deleteFailed: string;
99
99
  readonly starAdd: string;
100
100
  readonly starRemove: string;
101
101
  readonly markRead: string;
@@ -117,6 +117,18 @@ type DailyReportLabels = VirtualScrollLabels & {
117
117
  readonly commentDeleteConfirm: string;
118
118
  readonly unknownUser: string;
119
119
  readonly sourceInternal: string;
120
+ readonly searchInputLabel: string;
121
+ readonly searchPlaceholder: string;
122
+ readonly searchCombineAnd: string;
123
+ readonly searchCombineOr: string;
124
+ readonly searchCombineAndTitle: string;
125
+ readonly searchCombineOrTitle: string;
126
+ readonly searchClear: string;
127
+ readonly searching: string;
128
+ readonly searchNoHits: string;
129
+ readonly searchSyntaxHelp: string;
130
+ readonly searchMatchOutsideView: string;
131
+ readonly searchMatchOutsideViewDescription: string;
120
132
  readonly totalCount: (count: number) => string;
121
133
  readonly debounce: (milliseconds: number) => string;
122
134
  readonly streamProgressCount: (loaded: number) => string;
@@ -126,12 +138,17 @@ type DailyReportLabels = VirtualScrollLabels & {
126
138
  readonly reportSummaryLoadFailed: (reportHubId: number) => string;
127
139
  readonly interviewerWithAffiliation: (name: string, affiliation: string) => string;
128
140
  readonly operationFailed: (operation: DailyReportOperation) => string;
141
+ readonly noticeRepeated: (count: number) => string;
129
142
  readonly rowState: (state: {
130
143
  readonly isRead: boolean;
131
144
  readonly isStarred: boolean;
132
145
  }) => string;
133
146
  readonly listRowPosition: (position: number, total: number) => string;
134
147
  readonly listRowPositionInUnknownTotal: (position: number) => string;
148
+ readonly searchHitCount: (count: number) => string;
149
+ readonly searchFailed: (failure: DailyReportSearchFailure) => string;
150
+ readonly searchMatchedKeywords: (matched: number, total: number) => string;
151
+ readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
135
152
  };
136
153
  type DailyReportLabelOverrides = {
137
154
  readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
@@ -199,7 +216,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
199
216
  "contentEmpty",
200
217
  "contentEmptyPreview",
201
218
  "confirmDelete",
202
- "deleteFailed",
203
219
  "starAdd",
204
220
  "starRemove",
205
221
  "markRead",
@@ -221,6 +237,18 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
221
237
  "commentDeleteConfirm",
222
238
  "unknownUser",
223
239
  "sourceInternal",
240
+ "searchInputLabel",
241
+ "searchPlaceholder",
242
+ "searchCombineAnd",
243
+ "searchCombineOr",
244
+ "searchCombineAndTitle",
245
+ "searchCombineOrTitle",
246
+ "searchClear",
247
+ "searching",
248
+ "searchNoHits",
249
+ "searchSyntaxHelp",
250
+ "searchMatchOutsideView",
251
+ "searchMatchOutsideViewDescription",
224
252
  "totalCount",
225
253
  "debounce",
226
254
  "streamProgressCount",
@@ -230,9 +258,14 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
230
258
  "reportSummaryLoadFailed",
231
259
  "interviewerWithAffiliation",
232
260
  "operationFailed",
261
+ "noticeRepeated",
233
262
  "rowState",
234
263
  "listRowPosition",
235
- "listRowPositionInUnknownTotal"
264
+ "listRowPositionInUnknownTotal",
265
+ "searchHitCount",
266
+ "searchFailed",
267
+ "searchMatchedKeywords",
268
+ "searchMatchedKeywordsDescription"
236
269
  ];
237
270
  declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
238
271
  declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
@@ -251,6 +284,12 @@ type SourceTypeConfig = {
251
284
  badgeClassName?: string;
252
285
  allowComment?: boolean;
253
286
  };
287
+ type DailyReportSearchSetting = {
288
+ readonly debounceMs: number | null;
289
+ };
290
+ type DailyReportSearchSettingInput = {
291
+ readonly debounceMs?: number;
292
+ };
254
293
  type DailyReportClientConfig = {
255
294
  apiBasePath: string;
256
295
  ssePath: string;
@@ -263,11 +302,13 @@ type DailyReportClientConfig = {
263
302
  headingLevel: 2 | 3 | 4 | 5;
264
303
  onError?: (info: DailyReportErrorInfo) => void;
265
304
  onSessionExpired: () => void;
305
+ search: DailyReportSearchSetting | null;
266
306
  };
267
- type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired">> & {
307
+ type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired" | "search">> & {
268
308
  locale?: DailyReportLocale;
269
309
  labels?: DailyReportLabelOverrides;
270
310
  onSessionExpired: () => void;
311
+ search?: DailyReportSearchSettingInput;
271
312
  };
272
313
  type DailyReportClientConfigDefaults = Readonly<Pick<DailyReportClientConfig, "apiBasePath" | "ssePath" | "draftLabelName" | "renderHeader" | "showDevControls" | "headingLevel">>;
273
314
  declare const defaultDailyReportClientConfig: DailyReportClientConfigDefaults;
@@ -431,12 +472,15 @@ type DailyReportActionFunctions = {
431
472
  refetchData: () => Promise<void>;
432
473
  clearCacheAndRefetch: () => Promise<void>;
433
474
  };
475
+ type DailyReportLedgerView<Contents> = {
476
+ readonly current: Contents;
477
+ };
434
478
  type DailyReportActionLedgers = {
435
- pendingAddCommentIds: React.MutableRefObject<Map<number, Map<number, string>>>;
436
- pendingDeleteCommentIds: React.MutableRefObject<Map<number, Set<number>>>;
437
- pendingStarUpdates: React.MutableRefObject<Map<number, boolean>>;
438
- pendingReadUpdates: React.MutableRefObject<Map<number, boolean>>;
439
- 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>>;
440
484
  };
441
485
  type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers & {
442
486
  user?: DailyReportUser;
@@ -446,6 +490,9 @@ type DailyReportActionState = {
446
490
  items: DailyReportItem[];
447
491
  isSseEnabled: boolean;
448
492
  sseStatus: DailyReportSseConnectionStatus;
493
+ searchInvalidation: string;
494
+ isReportRemoved: (reportHubId: number) => boolean;
495
+ removedVersion: number;
449
496
  };
450
497
  type DailyReportActionContextType = DailyReportActions & DailyReportActionState;
451
498
  declare global {
@@ -469,23 +516,13 @@ type DailyReportDetailResource = {
469
516
  };
470
517
  declare const useDailyReportDetail: (reportHubId: number, businessDate: string | null) => DailyReportDetailResource;
471
518
  declare const useDailyReportPrefetch: () => (date: string | null) => void;
472
- type User = {
473
- displayName?: string;
474
- name?: {
475
- familyName?: string;
476
- givenName?: string;
477
- };
478
- emails?: {
479
- value: string;
480
- }[];
481
- };
482
- declare const useDailyReportComments: (report: DailyReportDetail | null, user: User | null | undefined, userId?: string | null) => {
519
+ declare const useDailyReportComments: (report: DailyReportDetail | null, user: Pick<DailyReportUser, "displayName" | "name" | "emails"> | null | undefined, userId?: string | null) => {
483
520
  uiComments: UIComment[];
484
521
  handleAddComment: (content: string) => Promise<void>;
485
522
  handleDeleteComment: (cId: number) => Promise<void> | null;
486
523
  pendingDeleteId: string | number | null;
487
524
  setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
488
- resolvedIdMap: Map<number, number>;
525
+ resolvedIdMap: ReadonlyMap<number, number>;
489
526
  };
490
527
  declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
491
528
  declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
@@ -496,5 +533,6 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
496
533
  }): Promise<TServerData>;
497
534
  hydrate: true;
498
535
  };
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]";
499
537
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
500
- 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 };
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 };