@aiquants/daily-report 0.22.1 → 0.23.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 +190 -0
- package/README.md +791 -113
- package/dist/client.d.mts +35 -149
- package/dist/client.d.ts +35 -149
- package/dist/client.js +4 -6
- package/dist/client.mjs +4 -6
- package/dist/{ids-stream-BnM6L-Sk.d.ts → ids-stream-BR5RSj5u.d.ts} +157 -148
- package/dist/{ids-stream-DCuiaTit.d.mts → ids-stream-DvB2h1dj.d.mts} +157 -148
- package/dist/index.d.mts +29 -9
- package/dist/index.d.ts +29 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/server.d.mts +143 -58
- package/dist/server.d.ts +143 -58
- package/dist/server.js +5 -4
- package/dist/server.mjs +5 -4
- package/dist/styles/daily-report.standalone.css +1 -1
- package/dist/{types-CqgYQgbH.d.mts → types-DkERw8NE.d.mts} +2 -1
- package/dist/{types-CqgYQgbH.d.ts → types-DkERw8NE.d.ts} +2 -1
- package/package.json +31 -14
- package/dist/logger-D3krZrNK.d.mts +0 -15
- package/dist/logger-D3krZrNK.d.ts +0 -15
package/dist/client.d.ts
CHANGED
|
@@ -1,51 +1,17 @@
|
|
|
1
1
|
import * as react from "react";
|
|
2
2
|
import { RefObject, ReactNode, Context } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { U as UIComment, D as DailyReportSseTerminalEvent, a as DailyReportSseMessage, b as DailyReportSseStreamAnchor } from "./ids-stream-BnM6L-Sk.js";
|
|
3
|
+
import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-DkERw8NE.js";
|
|
4
|
+
import { VirtualScrollLocale, VirtualScrollLabels, ScrollBarTapCircleOptions } from "@aiquants/virtualscroll";
|
|
6
5
|
import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
|
|
6
|
+
import { D as DailyReportSseTerminalEvent, a as DailyReportSseMessage, U as UIComment, b as DailyReportSseStreamAnchor } from "./ids-stream-BR5RSj5u.js";
|
|
7
7
|
import { ShouldRevalidateFunction } from "react-router";
|
|
8
8
|
import "zod";
|
|
9
|
-
declare const BusinessDayThumbOverlay: ({ orientation, thumbCenter, label, isDragging, isTapScrollActive, isWheelScrollActive }: ScrollBarThumbOverlayRenderProps & {
|
|
10
|
-
label: string;
|
|
11
|
-
isWheelScrollActive: boolean;
|
|
12
|
-
}) => react.JSX.Element | null;
|
|
13
9
|
type DailyReportAttachmentIndicatorProps = {
|
|
10
|
+
id: string;
|
|
14
11
|
count: number;
|
|
15
12
|
label: string;
|
|
16
13
|
};
|
|
17
|
-
declare const DailyReportAttachmentIndicator: ({ count, label }: DailyReportAttachmentIndicatorProps) => react.JSX.Element | null;
|
|
18
|
-
type DailyReportAttachmentListProps = {
|
|
19
|
-
attachments: DailyReportAttachmentSummary[];
|
|
20
|
-
};
|
|
21
|
-
declare const DailyReportAttachmentList: ({ attachments }: DailyReportAttachmentListProps) => react.JSX.Element | null;
|
|
22
|
-
type DailyReportPostedCommentProps = {
|
|
23
|
-
comment: UIComment;
|
|
24
|
-
reportHubId: number;
|
|
25
|
-
businessDate: string;
|
|
26
|
-
onOptimisticDelete: (commentId: number) => void;
|
|
27
|
-
pendingDeleteId: number | string | null;
|
|
28
|
-
onPendingDeleteIdChange: (id: number | string | null) => void;
|
|
29
|
-
onTrashClick: (e: React.MouseEvent | React.TouchEvent, commentId: number | string) => void;
|
|
30
|
-
resolvedIdMap?: Map<number, number>;
|
|
31
|
-
};
|
|
32
|
-
declare const DailyReportPostedComment: ({ comment, reportHubId: _reportHubId, businessDate: _businessDate, onOptimisticDelete, pendingDeleteId, onPendingDeleteIdChange, onTrashClick, resolvedIdMap }: DailyReportPostedCommentProps) => react.JSX.Element;
|
|
33
|
-
type DailyReportCommentListProps = {
|
|
34
|
-
comments: UIComment[];
|
|
35
|
-
reportHubId: number;
|
|
36
|
-
businessDate: string;
|
|
37
|
-
onDeleteComment?: (commentId: number) => void;
|
|
38
|
-
pendingDeleteId: number | string | null;
|
|
39
|
-
onPendingDeleteIdChange: (id: number | string | null) => void;
|
|
40
|
-
resolvedIdMap?: Map<number, number>;
|
|
41
|
-
};
|
|
42
|
-
declare const DailyReportCommentList: ({ comments, reportHubId, businessDate, onDeleteComment, pendingDeleteId, onPendingDeleteIdChange, resolvedIdMap }: DailyReportCommentListProps) => react.JSX.Element | null;
|
|
43
|
-
type DailyReportCommentFormProps = {
|
|
44
|
-
reportHubId: number;
|
|
45
|
-
businessDate: string;
|
|
46
|
-
onAddComment?: (content: string) => Promise<void> | void;
|
|
47
|
-
};
|
|
48
|
-
declare const DailyReportCommentForm: ({ reportHubId, businessDate, onAddComment }: DailyReportCommentFormProps) => react.JSX.Element;
|
|
14
|
+
declare const DailyReportAttachmentIndicator: ({ id, count, label }: DailyReportAttachmentIndicatorProps) => react.JSX.Element | null;
|
|
49
15
|
type DailyReportDetailListScrollRestore = {
|
|
50
16
|
topItem: {
|
|
51
17
|
reportHubId: number;
|
|
@@ -62,13 +28,7 @@ type DailyReportDetailListProps = {
|
|
|
62
28
|
onSelectItem?: (id: number | null) => void;
|
|
63
29
|
scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
|
|
64
30
|
};
|
|
65
|
-
declare const DailyReportDetailList: (
|
|
66
|
-
type DailyReportEditFormProps = {
|
|
67
|
-
report: DailyReportDetail;
|
|
68
|
-
onCancel?: () => void;
|
|
69
|
-
onPublishSuccess?: () => void;
|
|
70
|
-
};
|
|
71
|
-
declare const DailyReportEditForm: ({ report, onCancel, onPublishSuccess }: DailyReportEditFormProps) => react.JSX.Element;
|
|
31
|
+
declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
|
|
72
32
|
declare const DailyReportIdsStreamStatus: () => react.JSX.Element | null;
|
|
73
33
|
type DailyReportListProps = {
|
|
74
34
|
dailyReportItems: DailyReportItem[];
|
|
@@ -78,7 +38,7 @@ type DailyReportListProps = {
|
|
|
78
38
|
userId?: string | null;
|
|
79
39
|
scrollOffsetRef?: RefObject<number>;
|
|
80
40
|
};
|
|
81
|
-
declare const DailyReportList: (
|
|
41
|
+
declare const DailyReportList: (props: DailyReportListProps) => react.JSX.Element;
|
|
82
42
|
type DailyReportLocale = VirtualScrollLocale;
|
|
83
43
|
type DailyReportOperation = "create" | "update" | "publish" | "delete" | "addComment" | "deleteComment" | "toggleStar" | "toggleRead";
|
|
84
44
|
type DailyReportLabels = VirtualScrollLabels & {
|
|
@@ -90,7 +50,6 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
90
50
|
readonly updatedAt: string;
|
|
91
51
|
readonly updatedBy: string;
|
|
92
52
|
readonly category: string;
|
|
93
|
-
readonly categoryInfo: string;
|
|
94
53
|
readonly creationCategory: string;
|
|
95
54
|
readonly customer: string;
|
|
96
55
|
readonly subject: string;
|
|
@@ -100,13 +59,17 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
100
59
|
readonly attachments: string;
|
|
101
60
|
readonly attachmentMissing: string;
|
|
102
61
|
readonly attachmentDownload: string;
|
|
62
|
+
readonly attachmentThumbnailUnavailable: string;
|
|
103
63
|
readonly tabArticle: string;
|
|
104
64
|
readonly tabRelations: string;
|
|
65
|
+
readonly reportTabList: string;
|
|
105
66
|
readonly relationsEmpty: string;
|
|
106
67
|
readonly title: string;
|
|
68
|
+
readonly listKeyboardHelp: string;
|
|
107
69
|
readonly tabList: string;
|
|
108
70
|
readonly tabTree: string;
|
|
109
71
|
readonly tabDetailList: string;
|
|
72
|
+
readonly viewTabList: string;
|
|
110
73
|
readonly treeComingSoon: string;
|
|
111
74
|
readonly totalCountLoading: string;
|
|
112
75
|
readonly createReport: string;
|
|
@@ -137,9 +100,8 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
137
100
|
readonly markRead: string;
|
|
138
101
|
readonly markUnread: string;
|
|
139
102
|
readonly deleteReport: string;
|
|
103
|
+
readonly edit: string;
|
|
140
104
|
readonly resizeHandle: string;
|
|
141
|
-
readonly overlayBackdrop: string;
|
|
142
|
-
readonly overlayDialog: string;
|
|
143
105
|
readonly close: string;
|
|
144
106
|
readonly formTitle: string;
|
|
145
107
|
readonly formTitlePlaceholder: string;
|
|
@@ -163,6 +125,10 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
163
125
|
readonly reportSummaryLoadFailed: (reportHubId: number) => string;
|
|
164
126
|
readonly interviewerWithAffiliation: (name: string, affiliation: string) => string;
|
|
165
127
|
readonly operationFailed: (operation: DailyReportOperation) => string;
|
|
128
|
+
readonly rowState: (state: {
|
|
129
|
+
readonly isRead: boolean;
|
|
130
|
+
readonly isStarred: boolean;
|
|
131
|
+
}) => string;
|
|
166
132
|
};
|
|
167
133
|
type DailyReportLabelOverrides = {
|
|
168
134
|
readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
|
|
@@ -183,7 +149,6 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
183
149
|
"updatedAt",
|
|
184
150
|
"updatedBy",
|
|
185
151
|
"category",
|
|
186
|
-
"categoryInfo",
|
|
187
152
|
"creationCategory",
|
|
188
153
|
"customer",
|
|
189
154
|
"subject",
|
|
@@ -193,13 +158,17 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
193
158
|
"attachments",
|
|
194
159
|
"attachmentMissing",
|
|
195
160
|
"attachmentDownload",
|
|
161
|
+
"attachmentThumbnailUnavailable",
|
|
196
162
|
"tabArticle",
|
|
197
163
|
"tabRelations",
|
|
164
|
+
"reportTabList",
|
|
198
165
|
"relationsEmpty",
|
|
199
166
|
"title",
|
|
167
|
+
"listKeyboardHelp",
|
|
200
168
|
"tabList",
|
|
201
169
|
"tabTree",
|
|
202
170
|
"tabDetailList",
|
|
171
|
+
"viewTabList",
|
|
203
172
|
"treeComingSoon",
|
|
204
173
|
"totalCountLoading",
|
|
205
174
|
"createReport",
|
|
@@ -230,9 +199,8 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
230
199
|
"markRead",
|
|
231
200
|
"markUnread",
|
|
232
201
|
"deleteReport",
|
|
202
|
+
"edit",
|
|
233
203
|
"resizeHandle",
|
|
234
|
-
"overlayBackdrop",
|
|
235
|
-
"overlayDialog",
|
|
236
204
|
"close",
|
|
237
205
|
"formTitle",
|
|
238
206
|
"formTitlePlaceholder",
|
|
@@ -255,7 +223,8 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
255
223
|
"reportLoadFailed",
|
|
256
224
|
"reportSummaryLoadFailed",
|
|
257
225
|
"interviewerWithAffiliation",
|
|
258
|
-
"operationFailed"
|
|
226
|
+
"operationFailed",
|
|
227
|
+
"rowState"
|
|
259
228
|
];
|
|
260
229
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
261
230
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
@@ -270,6 +239,7 @@ type DailyReportErrorInfo = {
|
|
|
270
239
|
};
|
|
271
240
|
type SourceTypeConfig = {
|
|
272
241
|
label: string;
|
|
242
|
+
name?: string;
|
|
273
243
|
badgeClassName?: string;
|
|
274
244
|
allowComment?: boolean;
|
|
275
245
|
};
|
|
@@ -282,6 +252,7 @@ type DailyReportClientConfig = {
|
|
|
282
252
|
sourceTypeConfigs: Record<string, SourceTypeConfig>;
|
|
283
253
|
renderHeader: (props: DailyReportHeaderProps) => ReactNode;
|
|
284
254
|
showDevControls: boolean;
|
|
255
|
+
headingLevel: 2 | 3 | 4 | 5;
|
|
285
256
|
onError?: (info: DailyReportErrorInfo) => void;
|
|
286
257
|
onSessionExpired: () => void;
|
|
287
258
|
};
|
|
@@ -290,7 +261,7 @@ type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "local
|
|
|
290
261
|
labels?: DailyReportLabelOverrides;
|
|
291
262
|
onSessionExpired: () => void;
|
|
292
263
|
};
|
|
293
|
-
type DailyReportClientConfigDefaults = Readonly<Pick<DailyReportClientConfig, "apiBasePath" | "ssePath" | "draftLabelName" | "renderHeader" | "showDevControls">>;
|
|
264
|
+
type DailyReportClientConfigDefaults = Readonly<Pick<DailyReportClientConfig, "apiBasePath" | "ssePath" | "draftLabelName" | "renderHeader" | "showDevControls" | "headingLevel">>;
|
|
294
265
|
declare const defaultDailyReportClientConfig: DailyReportClientConfigDefaults;
|
|
295
266
|
declare const DailyReportConfigProvider: ({ config, children }: {
|
|
296
267
|
config: DailyReportClientConfigInput;
|
|
@@ -298,8 +269,6 @@ declare const DailyReportConfigProvider: ({ config, children }: {
|
|
|
298
269
|
}) => react.JSX.Element;
|
|
299
270
|
declare const useDailyReportConfig: () => DailyReportClientConfig;
|
|
300
271
|
declare const resolveSourceTypeConfig: (sourceType?: string | null, sourceTypeConfigs?: Record<string, SourceTypeConfig>) => SourceTypeConfig | undefined;
|
|
301
|
-
declare const DailyReportLoadError: () => react.JSX.Element;
|
|
302
|
-
declare const DailyReportLoading: () => react.JSX.Element;
|
|
303
272
|
type DailyReportPageProps = {
|
|
304
273
|
user?: DailyReportUser;
|
|
305
274
|
userId?: string | null;
|
|
@@ -310,10 +279,6 @@ type DailyReportResolvedContentProps = {
|
|
|
310
279
|
userId?: string | null;
|
|
311
280
|
};
|
|
312
281
|
declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
|
|
313
|
-
type UnreadIndicatorProps = {
|
|
314
|
-
className?: string;
|
|
315
|
-
};
|
|
316
|
-
declare const UnreadIndicator: ({ className }: UnreadIndicatorProps) => react.JSX.Element;
|
|
317
282
|
type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
|
|
318
283
|
readonly kind: "resyncing";
|
|
319
284
|
};
|
|
@@ -324,6 +289,7 @@ type UseDailyReportSseConnectionOptions = {
|
|
|
324
289
|
}>) => void;
|
|
325
290
|
};
|
|
326
291
|
declare const useDailyReportSseConnection: ({ isSseEnabled, onMessage }: UseDailyReportSseConnectionOptions) => DailyReportSseConnectionStatus;
|
|
292
|
+
type ReportBusinessDate = DailyReportDetail["date"];
|
|
327
293
|
type DailyReportActionContextType = {
|
|
328
294
|
user?: DailyReportUser;
|
|
329
295
|
pendingAddCommentIds: React.MutableRefObject<Map<number, Map<number, string>>>;
|
|
@@ -336,17 +302,17 @@ type DailyReportActionContextType = {
|
|
|
336
302
|
isSseEnabled: boolean;
|
|
337
303
|
toggleSse: () => void;
|
|
338
304
|
sseStatus: DailyReportSseConnectionStatus;
|
|
339
|
-
addComment: (reportHubId: number, content: string, businessDate:
|
|
340
|
-
deleteComment: (reportHubId: number, commentId: number, businessDate:
|
|
341
|
-
toggleStar: (reportHubId: number, isStarred: boolean, businessDate:
|
|
342
|
-
toggleRead: (reportHubId: number, isRead: boolean, businessDate:
|
|
305
|
+
addComment: (reportHubId: number, content: string, businessDate: ReportBusinessDate) => Promise<void>;
|
|
306
|
+
deleteComment: (reportHubId: number, commentId: number, businessDate: ReportBusinessDate) => Promise<void>;
|
|
307
|
+
toggleStar: (reportHubId: number, isStarred: boolean, businessDate: ReportBusinessDate) => Promise<void>;
|
|
308
|
+
toggleRead: (reportHubId: number, isRead: boolean, businessDate: ReportBusinessDate) => Promise<void>;
|
|
343
309
|
createReport: (businessDate: string) => Promise<number>;
|
|
344
310
|
updateReport: (reportHubId: number, data: {
|
|
345
311
|
title?: string;
|
|
346
312
|
content?: string;
|
|
347
|
-
}, businessDate:
|
|
348
|
-
publishReport: (reportHubId: number, businessDate:
|
|
349
|
-
deleteReport: (reportHubId: number, businessDate:
|
|
313
|
+
}, businessDate: ReportBusinessDate) => Promise<void>;
|
|
314
|
+
publishReport: (reportHubId: number, businessDate: ReportBusinessDate) => Promise<void>;
|
|
315
|
+
deleteReport: (reportHubId: number, businessDate: ReportBusinessDate) => Promise<void>;
|
|
350
316
|
removeStaleItem: (reportHubId: number) => void;
|
|
351
317
|
refetchData: () => Promise<void>;
|
|
352
318
|
clearCacheAndRefetch: () => Promise<void>;
|
|
@@ -361,53 +327,9 @@ declare const DailyReportActionProvider: ({ children, user, initialItems, userId
|
|
|
361
327
|
initialItems?: DailyReportItem[];
|
|
362
328
|
userId?: string | null;
|
|
363
329
|
}) => react.JSX.Element;
|
|
364
|
-
type DailyReportErrorSurface = {
|
|
365
|
-
notifyError: (info: DailyReportErrorInfo) => void;
|
|
366
|
-
};
|
|
367
|
-
declare const useDailyReportErrorSurface: () => DailyReportErrorSurface;
|
|
368
330
|
declare const DailyReportErrorProvider: ({ children }: {
|
|
369
331
|
children: ReactNode;
|
|
370
332
|
}) => react.JSX.Element;
|
|
371
|
-
declare const useAnimatedNumber: (value: number, durationMs?: number) => number;
|
|
372
|
-
type CacheEntry<T> = {
|
|
373
|
-
data: T;
|
|
374
|
-
expiresAt: number;
|
|
375
|
-
};
|
|
376
|
-
declare const DailyReportCache: {
|
|
377
|
-
reports: Map<number, CacheEntry<DailyReportDetail>>;
|
|
378
|
-
lists: Map<string, CacheEntry<DailyReportDetail[]>>;
|
|
379
|
-
pendingLists: Map<string, Promise<DailyReportDetail[]>>;
|
|
380
|
-
pendingReports: Map<number, Promise<DailyReportDetail>>;
|
|
381
|
-
listeners: Set<(id: number) => void>;
|
|
382
|
-
locks: Set<number>;
|
|
383
|
-
lastMutations: Map<number, number>;
|
|
384
|
-
recentDeletes: Map<number, number>;
|
|
385
|
-
lastPrune: number;
|
|
386
|
-
prune(): void;
|
|
387
|
-
clear(): void;
|
|
388
|
-
isValid: (ex: number) => boolean;
|
|
389
|
-
notify: (id: number) => void;
|
|
390
|
-
getReport(id: number, ignoreExpiry?: boolean): DailyReportDetail | null;
|
|
391
|
-
getList(dateKey: string | null, ignoreExpiry?: boolean): DailyReportDetail[] | null;
|
|
392
|
-
set(report: DailyReportDetail, expiresAt: number, syncList?: boolean): void;
|
|
393
|
-
update(id: number, updates: Partial<DailyReportDetail>, strict?: boolean): void;
|
|
394
|
-
delete(id: number, date: string): void;
|
|
395
|
-
merge(serverReport: DailyReportDetail, cachedReport?: DailyReportDetail | null): DailyReportDetail;
|
|
396
|
-
cacheMany(reports: DailyReportDetail[], dateKey: string | null, fetchStart: number): DailyReportDetail[];
|
|
397
|
-
};
|
|
398
|
-
declare const writeCache: (r: DailyReportDetail, exp: number, sync?: boolean) => void;
|
|
399
|
-
declare const getCachedReport: (id: number, opts?: {
|
|
400
|
-
ignoreExpiry?: boolean;
|
|
401
|
-
}) => DailyReportDetail | null;
|
|
402
|
-
declare const updateDailyReportCache: (id: number, u: Partial<DailyReportDetail>) => void;
|
|
403
|
-
declare const deleteDailyReportCache: (id: number, d: string) => void;
|
|
404
|
-
declare const clearDailyReportCache: () => void;
|
|
405
|
-
declare const acquireMutationLock: (id: number) => void;
|
|
406
|
-
declare const releaseMutationLock: (id: number) => void;
|
|
407
|
-
declare const registerRecentDeletion: (cId: number) => Map<number, number>;
|
|
408
|
-
declare const subscribeCacheReady: (reportHubId: number, callback: () => void) => (() => void);
|
|
409
|
-
declare const applyDailyReportServerUpdates: (_reportHubId: number, report: DailyReportDetail) => void;
|
|
410
|
-
declare const applyBroadcastReportUpdate: (report: DailyReportDetail) => void;
|
|
411
333
|
type DailyReportDetailResource = {
|
|
412
334
|
report: DailyReportDetail | null;
|
|
413
335
|
error: Error | null;
|
|
@@ -434,16 +356,6 @@ declare const useDailyReportComments: (report: DailyReportDetail | null, user: U
|
|
|
434
356
|
setPendingDeleteId: react.Dispatch<react.SetStateAction<string | number | null>>;
|
|
435
357
|
resolvedIdMap: Map<number, number>;
|
|
436
358
|
};
|
|
437
|
-
type UseDynamicViewportHeightOptions = {
|
|
438
|
-
enableMutationObserver?: boolean;
|
|
439
|
-
bottomGap?: number;
|
|
440
|
-
minFallbackHeight?: number;
|
|
441
|
-
};
|
|
442
|
-
type UseDynamicViewportHeightResult = {
|
|
443
|
-
viewportHeight: number;
|
|
444
|
-
updateViewportHeight: () => void;
|
|
445
|
-
};
|
|
446
|
-
declare const useDynamicViewportHeight: (containerRef: RefObject<HTMLDivElement | null>, options?: UseDynamicViewportHeightOptions) => UseDynamicViewportHeightResult;
|
|
447
359
|
declare const dailyReportShouldRevalidate: ShouldRevalidateFunction;
|
|
448
360
|
declare const createDailyReportClientLoader: <TServerData extends Record<string, unknown>>(options?: {
|
|
449
361
|
apiBasePath?: string;
|
|
@@ -538,34 +450,8 @@ declare const bootstrapDailyReportIdsStreamSession: (options: {
|
|
|
538
450
|
userKey: string | null;
|
|
539
451
|
}) => void;
|
|
540
452
|
declare const primeDailyReportIdsStreamSession: () => void;
|
|
541
|
-
declare const upsertDailyReportIdsStreamItem: (item: DailyReportItem) => void;
|
|
542
|
-
declare const removeDailyReportIdsStreamItem: (reportHubId: number) => void;
|
|
543
|
-
declare const retryDailyReportIdsStream: () => void;
|
|
544
453
|
declare const resyncDailyReportIdsStream: () => void;
|
|
545
|
-
declare const refreshDailyReportIdsStream: (options?: {
|
|
546
|
-
forceRefresh?: boolean;
|
|
547
|
-
}) => void;
|
|
548
|
-
declare const getDailyReportIdsStreamSessionUserKey: () => string | null | undefined;
|
|
549
454
|
declare const useDailyReportIdsStream: () => DailyReportIdsStreamState;
|
|
550
|
-
declare const resetDailyReportIdsStreamSessionForTesting: () => void;
|
|
551
|
-
declare const DAILY_REPORT_FETCH_DEBOUNCE_MS = 120;
|
|
552
|
-
declare const SSE_INITIAL_CONNECT_DEFER_MS = 1000;
|
|
553
455
|
declare const DEFAULT_ITEM_HEIGHT = 160;
|
|
554
|
-
declare const ITEM_VERTICAL_PADDING = 6;
|
|
555
|
-
declare const ITEM_CONTAINER_HEIGHT: number;
|
|
556
|
-
declare const FAST_SCROLL_WHEEL_MULTIPLIER = 0.8;
|
|
557
|
-
declare const FAST_SCROLL_INERTIA_OPTIONS: ScrollPaneInertiaOptions;
|
|
558
|
-
declare const PREFETCH_LOOKAHEAD = 20;
|
|
559
|
-
declare const PREFETCH_MAX_DATES = 6;
|
|
560
|
-
declare const EMPTY_ITEM: DailyReportItem;
|
|
561
|
-
declare const EMPTY_DETAIL: DailyReportDetailResource;
|
|
562
|
-
declare const WHEEL_RESET_TIMEOUT_MS = 240;
|
|
563
|
-
declare const VIRTUAL_SCROLL_OVERSCAN_COUNT = 15;
|
|
564
|
-
declare const SCROLL_BAR_WIDTH = 8;
|
|
565
|
-
declare const MAX_PREVIEW_LINES = 3;
|
|
566
456
|
declare const TAP_SCROLL_CIRCLE_OPTIONS: ScrollBarTapCircleOptions;
|
|
567
|
-
|
|
568
|
-
"pen",
|
|
569
|
-
"touch"
|
|
570
|
-
];
|
|
571
|
-
export { BusinessDayThumbOverlay, CONTENT_DRAG_POINTER_INPUTS, DAILY_REPORT_FETCH_DEBOUNCE_MS, DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, DEFAULT_ITEM_HEIGHT, type DailyReportActionContextType, DailyReportActionProvider, DailyReportAttachmentIndicator, DailyReportAttachmentList, DailyReportCache, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportCommentForm, DailyReportCommentList, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, DailyReportEditForm, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, DailyReportLoadError, DailyReportLoading, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportPostedComment, DailyReportResolvedContent, type DailyReportSseConnectionStatus, EMPTY_DETAIL, EMPTY_ITEM, FAST_SCROLL_INERTIA_OPTIONS, FAST_SCROLL_WHEEL_MULTIPLIER, ITEM_CONTAINER_HEIGHT, ITEM_VERTICAL_PADDING, MAX_PREVIEW_LINES, PREFETCH_LOOKAHEAD, PREFETCH_MAX_DATES, SCROLL_BAR_WIDTH, SSE_INITIAL_CONNECT_DEFER_MS, type SourceTypeConfig, TAP_SCROLL_CIRCLE_OPTIONS, UnreadIndicator, type UseDailyReportSseConnectionOptions, VIRTUAL_SCROLL_OVERSCAN_COUNT, WHEEL_RESET_TIMEOUT_MS, acquireMutationLock, applyBroadcastReportUpdate, applyDailyReportServerUpdates, bootstrapDailyReportIdsStreamSession, clearDailyReportCache, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, deleteDailyReportCache, ensureDailyReportIdsStreamSession, getCachedReport, getDailyReportIdsStreamSessionUserKey, primeDailyReportIdsStreamSession, refreshDailyReportIdsStream, registerRecentDeletion, releaseMutationLock, removeDailyReportIdsStreamItem, resetDailyReportIdsStreamSessionForTesting, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, retryDailyReportIdsStream, subscribeCacheReady, updateDailyReportCache, upsertDailyReportIdsStreamItem, useAnimatedNumber, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportErrorSurface, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection, useDynamicViewportHeight, writeCache };
|
|
457
|
+
export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, DEFAULT_ITEM_HEIGHT, DailyReportActionProvider, DailyReportAttachmentIndicator, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportErrorInfo, DailyReportErrorProvider, DailyReportIdsStreamClient, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, DailyReportList, type DailyReportLocale, type DailyReportOperation, DailyReportPage, DailyReportResolvedContent, type DailyReportSseConnectionStatus, type SourceTypeConfig, TAP_SCROLL_CIRCLE_OPTIONS, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
|