@aiquants/daily-report 0.35.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/CHANGELOG.md +141 -0
- package/README.md +177 -66
- package/dist/client.d.mts +26 -15
- package/dist/client.d.ts +26 -15
- package/dist/client.js +6 -6
- package/dist/client.mjs +6 -6
- package/dist/{comment-adapter-DqBqtqfA.d.ts → comment-adapter-DOUwSlKf.d.ts} +1 -0
- package/dist/{comment-adapter-ChA4KOE1.d.mts → comment-adapter-_h3W1duG.d.mts} +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/search-marks-wire-CZRU4q3h.d.mts +35 -0
- package/dist/search-marks-wire-CZRU4q3h.d.ts +35 -0
- package/dist/server.d.mts +25 -12
- package/dist/server.d.ts +25 -12
- package/dist/server.js +10 -10
- package/dist/server.mjs +10 -10
- package/dist/styles/daily-report.standalone.css +1 -1
- package/package.json +1 -1
- package/dist/logger-BaxnzF-0.d.mts +0 -17
- package/dist/logger-BaxnzF-0.d.ts +0 -17
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-
|
|
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;
|
|
@@ -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,9 @@ 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;
|
|
132
|
+
readonly searchReadingMarkDescription: string;
|
|
131
133
|
readonly totalCount: (count: number) => string;
|
|
132
134
|
readonly debounce: (milliseconds: number) => string;
|
|
133
135
|
readonly streamProgressCount: (loaded: number) => string;
|
|
@@ -146,6 +148,8 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
146
148
|
readonly listRowPositionInUnknownTotal: (position: number) => string;
|
|
147
149
|
readonly searchHitCount: (count: number) => string;
|
|
148
150
|
readonly searchFailed: (failure: DailyReportSearchFailure) => string;
|
|
151
|
+
readonly searchMatchedKeywords: (matched: number, total: number) => string;
|
|
152
|
+
readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
|
|
149
153
|
};
|
|
150
154
|
type DailyReportLabelOverrides = {
|
|
151
155
|
readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
|
|
@@ -213,7 +217,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
213
217
|
"contentEmpty",
|
|
214
218
|
"contentEmptyPreview",
|
|
215
219
|
"confirmDelete",
|
|
216
|
-
"deleteFailed",
|
|
217
220
|
"starAdd",
|
|
218
221
|
"starRemove",
|
|
219
222
|
"markRead",
|
|
@@ -245,6 +248,9 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
245
248
|
"searching",
|
|
246
249
|
"searchNoHits",
|
|
247
250
|
"searchSyntaxHelp",
|
|
251
|
+
"searchMatchOutsideView",
|
|
252
|
+
"searchMatchOutsideViewDescription",
|
|
253
|
+
"searchReadingMarkDescription",
|
|
248
254
|
"totalCount",
|
|
249
255
|
"debounce",
|
|
250
256
|
"streamProgressCount",
|
|
@@ -259,7 +265,9 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
259
265
|
"listRowPosition",
|
|
260
266
|
"listRowPositionInUnknownTotal",
|
|
261
267
|
"searchHitCount",
|
|
262
|
-
"searchFailed"
|
|
268
|
+
"searchFailed",
|
|
269
|
+
"searchMatchedKeywords",
|
|
270
|
+
"searchMatchedKeywordsDescription"
|
|
263
271
|
];
|
|
264
272
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
265
273
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
@@ -395,7 +403,7 @@ declare class DailyReportIdsStreamClient {
|
|
|
395
403
|
private runStreamLoop;
|
|
396
404
|
private pruneUnseenItems;
|
|
397
405
|
private streamOnce;
|
|
398
|
-
private
|
|
406
|
+
private watchReadSilence;
|
|
399
407
|
private absorbChunkLine;
|
|
400
408
|
private putItem;
|
|
401
409
|
private deleteItem;
|
|
@@ -466,19 +474,22 @@ type DailyReportActionFunctions = {
|
|
|
466
474
|
refetchData: () => Promise<void>;
|
|
467
475
|
clearCacheAndRefetch: () => Promise<void>;
|
|
468
476
|
};
|
|
477
|
+
type DailyReportLedgerView<Contents> = {
|
|
478
|
+
readonly current: Contents;
|
|
479
|
+
};
|
|
469
480
|
type DailyReportActionLedgers = {
|
|
470
|
-
pendingAddCommentIds:
|
|
471
|
-
pendingDeleteCommentIds:
|
|
472
|
-
pendingStarUpdates:
|
|
473
|
-
pendingReadUpdates:
|
|
474
|
-
resolvedIdMap:
|
|
481
|
+
readonly pendingAddCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlyMap<number, string>>>;
|
|
482
|
+
readonly pendingDeleteCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlySet<number>>>;
|
|
483
|
+
readonly pendingStarUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
|
|
484
|
+
readonly pendingReadUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
|
|
485
|
+
readonly resolvedIdMap: DailyReportLedgerView<ReadonlyMap<number, number>>;
|
|
475
486
|
};
|
|
476
487
|
type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers & {
|
|
477
488
|
user?: DailyReportUser;
|
|
478
489
|
};
|
|
479
490
|
type DailyReportActionState = {
|
|
480
491
|
version: number;
|
|
481
|
-
items: DailyReportItem
|
|
492
|
+
items: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
|
|
482
493
|
isSseEnabled: boolean;
|
|
483
494
|
sseStatus: DailyReportSseConnectionStatus;
|
|
484
495
|
searchInvalidation: string;
|
|
@@ -513,7 +524,7 @@ declare const useDailyReportComments: (report: DailyReportDetail | null, user: P
|
|
|
513
524
|
handleDeleteComment: (cId: number) => Promise<void> | null;
|
|
514
525
|
pendingDeleteId: string | number | null;
|
|
515
526
|
setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
|
|
516
|
-
resolvedIdMap:
|
|
527
|
+
resolvedIdMap: ReadonlyMap<number, number>;
|
|
517
528
|
};
|
|
518
529
|
declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
|
|
519
530
|
declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
|
|
@@ -526,4 +537,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
526
537
|
};
|
|
527
538
|
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
539
|
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 };
|
|
540
|
+
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-
|
|
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;
|
|
@@ -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,9 @@ 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;
|
|
132
|
+
readonly searchReadingMarkDescription: string;
|
|
131
133
|
readonly totalCount: (count: number) => string;
|
|
132
134
|
readonly debounce: (milliseconds: number) => string;
|
|
133
135
|
readonly streamProgressCount: (loaded: number) => string;
|
|
@@ -146,6 +148,8 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
146
148
|
readonly listRowPositionInUnknownTotal: (position: number) => string;
|
|
147
149
|
readonly searchHitCount: (count: number) => string;
|
|
148
150
|
readonly searchFailed: (failure: DailyReportSearchFailure) => string;
|
|
151
|
+
readonly searchMatchedKeywords: (matched: number, total: number) => string;
|
|
152
|
+
readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
|
|
149
153
|
};
|
|
150
154
|
type DailyReportLabelOverrides = {
|
|
151
155
|
readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
|
|
@@ -213,7 +217,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
213
217
|
"contentEmpty",
|
|
214
218
|
"contentEmptyPreview",
|
|
215
219
|
"confirmDelete",
|
|
216
|
-
"deleteFailed",
|
|
217
220
|
"starAdd",
|
|
218
221
|
"starRemove",
|
|
219
222
|
"markRead",
|
|
@@ -245,6 +248,9 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
245
248
|
"searching",
|
|
246
249
|
"searchNoHits",
|
|
247
250
|
"searchSyntaxHelp",
|
|
251
|
+
"searchMatchOutsideView",
|
|
252
|
+
"searchMatchOutsideViewDescription",
|
|
253
|
+
"searchReadingMarkDescription",
|
|
248
254
|
"totalCount",
|
|
249
255
|
"debounce",
|
|
250
256
|
"streamProgressCount",
|
|
@@ -259,7 +265,9 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
259
265
|
"listRowPosition",
|
|
260
266
|
"listRowPositionInUnknownTotal",
|
|
261
267
|
"searchHitCount",
|
|
262
|
-
"searchFailed"
|
|
268
|
+
"searchFailed",
|
|
269
|
+
"searchMatchedKeywords",
|
|
270
|
+
"searchMatchedKeywordsDescription"
|
|
263
271
|
];
|
|
264
272
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
265
273
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
@@ -395,7 +403,7 @@ declare class DailyReportIdsStreamClient {
|
|
|
395
403
|
private runStreamLoop;
|
|
396
404
|
private pruneUnseenItems;
|
|
397
405
|
private streamOnce;
|
|
398
|
-
private
|
|
406
|
+
private watchReadSilence;
|
|
399
407
|
private absorbChunkLine;
|
|
400
408
|
private putItem;
|
|
401
409
|
private deleteItem;
|
|
@@ -466,19 +474,22 @@ type DailyReportActionFunctions = {
|
|
|
466
474
|
refetchData: () => Promise<void>;
|
|
467
475
|
clearCacheAndRefetch: () => Promise<void>;
|
|
468
476
|
};
|
|
477
|
+
type DailyReportLedgerView<Contents> = {
|
|
478
|
+
readonly current: Contents;
|
|
479
|
+
};
|
|
469
480
|
type DailyReportActionLedgers = {
|
|
470
|
-
pendingAddCommentIds:
|
|
471
|
-
pendingDeleteCommentIds:
|
|
472
|
-
pendingStarUpdates:
|
|
473
|
-
pendingReadUpdates:
|
|
474
|
-
resolvedIdMap:
|
|
481
|
+
readonly pendingAddCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlyMap<number, string>>>;
|
|
482
|
+
readonly pendingDeleteCommentIds: DailyReportLedgerView<ReadonlyMap<number, ReadonlySet<number>>>;
|
|
483
|
+
readonly pendingStarUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
|
|
484
|
+
readonly pendingReadUpdates: DailyReportLedgerView<ReadonlyMap<number, boolean>>;
|
|
485
|
+
readonly resolvedIdMap: DailyReportLedgerView<ReadonlyMap<number, number>>;
|
|
475
486
|
};
|
|
476
487
|
type DailyReportActions = DailyReportActionFunctions & DailyReportActionLedgers & {
|
|
477
488
|
user?: DailyReportUser;
|
|
478
489
|
};
|
|
479
490
|
type DailyReportActionState = {
|
|
480
491
|
version: number;
|
|
481
|
-
items: DailyReportItem
|
|
492
|
+
items: Pick<ReadonlyArray<DailyReportItem>, "length" | "at"> & Iterable<DailyReportItem>;
|
|
482
493
|
isSseEnabled: boolean;
|
|
483
494
|
sseStatus: DailyReportSseConnectionStatus;
|
|
484
495
|
searchInvalidation: string;
|
|
@@ -513,7 +524,7 @@ declare const useDailyReportComments: (report: DailyReportDetail | null, user: P
|
|
|
513
524
|
handleDeleteComment: (cId: number) => Promise<void> | null;
|
|
514
525
|
pendingDeleteId: string | number | null;
|
|
515
526
|
setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
|
|
516
|
-
resolvedIdMap:
|
|
527
|
+
resolvedIdMap: ReadonlyMap<number, number>;
|
|
517
528
|
};
|
|
518
529
|
declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
|
|
519
530
|
declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
|
|
@@ -526,4 +537,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
526
537
|
};
|
|
527
538
|
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
539
|
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 };
|
|
540
|
+
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 };
|