@aiquants/daily-report 0.34.0 → 0.35.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 +69 -0
- package/README.md +225 -50
- package/dist/client.d.mts +45 -16
- package/dist/client.d.ts +45 -16
- package/dist/client.js +4 -4
- package/dist/client.mjs +4 -4
- package/dist/{comment-adapter-BLfjD6P0.d.ts → comment-adapter-ChA4KOE1.d.mts} +71 -26
- package/dist/{comment-adapter-7TduiLiu.d.mts → comment-adapter-DqBqtqfA.d.ts} +71 -26
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/logger-BaxnzF-0.d.mts +17 -0
- package/dist/logger-BaxnzF-0.d.ts +17 -0
- package/dist/server.d.mts +252 -9
- package/dist/server.d.ts +252 -9
- package/dist/server.js +11 -4
- package/dist/server.mjs +11 -4
- package/dist/{sse-schema-DVIUaiAG.d.mts → sse-schema-getLS62T.d.mts} +1 -1
- package/dist/{sse-schema-DVIUaiAG.d.ts → sse-schema-getLS62T.d.ts} +1 -1
- package/dist/styles/daily-report.standalone.css +1 -1
- package/package.json +2 -1
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-
|
|
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-ChA4KOE1.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 & {
|
|
@@ -117,6 +118,16 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
117
118
|
readonly commentDeleteConfirm: string;
|
|
118
119
|
readonly unknownUser: string;
|
|
119
120
|
readonly sourceInternal: string;
|
|
121
|
+
readonly searchInputLabel: string;
|
|
122
|
+
readonly searchPlaceholder: string;
|
|
123
|
+
readonly searchCombineAnd: string;
|
|
124
|
+
readonly searchCombineOr: string;
|
|
125
|
+
readonly searchCombineAndTitle: string;
|
|
126
|
+
readonly searchCombineOrTitle: string;
|
|
127
|
+
readonly searchClear: string;
|
|
128
|
+
readonly searching: string;
|
|
129
|
+
readonly searchNoHits: string;
|
|
130
|
+
readonly searchSyntaxHelp: string;
|
|
120
131
|
readonly totalCount: (count: number) => string;
|
|
121
132
|
readonly debounce: (milliseconds: number) => string;
|
|
122
133
|
readonly streamProgressCount: (loaded: number) => string;
|
|
@@ -126,12 +137,15 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
126
137
|
readonly reportSummaryLoadFailed: (reportHubId: number) => string;
|
|
127
138
|
readonly interviewerWithAffiliation: (name: string, affiliation: string) => string;
|
|
128
139
|
readonly operationFailed: (operation: DailyReportOperation) => string;
|
|
140
|
+
readonly noticeRepeated: (count: number) => string;
|
|
129
141
|
readonly rowState: (state: {
|
|
130
142
|
readonly isRead: boolean;
|
|
131
143
|
readonly isStarred: boolean;
|
|
132
144
|
}) => string;
|
|
133
145
|
readonly listRowPosition: (position: number, total: number) => string;
|
|
134
146
|
readonly listRowPositionInUnknownTotal: (position: number) => string;
|
|
147
|
+
readonly searchHitCount: (count: number) => string;
|
|
148
|
+
readonly searchFailed: (failure: DailyReportSearchFailure) => string;
|
|
135
149
|
};
|
|
136
150
|
type DailyReportLabelOverrides = {
|
|
137
151
|
readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
|
|
@@ -221,6 +235,16 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
221
235
|
"commentDeleteConfirm",
|
|
222
236
|
"unknownUser",
|
|
223
237
|
"sourceInternal",
|
|
238
|
+
"searchInputLabel",
|
|
239
|
+
"searchPlaceholder",
|
|
240
|
+
"searchCombineAnd",
|
|
241
|
+
"searchCombineOr",
|
|
242
|
+
"searchCombineAndTitle",
|
|
243
|
+
"searchCombineOrTitle",
|
|
244
|
+
"searchClear",
|
|
245
|
+
"searching",
|
|
246
|
+
"searchNoHits",
|
|
247
|
+
"searchSyntaxHelp",
|
|
224
248
|
"totalCount",
|
|
225
249
|
"debounce",
|
|
226
250
|
"streamProgressCount",
|
|
@@ -230,9 +254,12 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
230
254
|
"reportSummaryLoadFailed",
|
|
231
255
|
"interviewerWithAffiliation",
|
|
232
256
|
"operationFailed",
|
|
257
|
+
"noticeRepeated",
|
|
233
258
|
"rowState",
|
|
234
259
|
"listRowPosition",
|
|
235
|
-
"listRowPositionInUnknownTotal"
|
|
260
|
+
"listRowPositionInUnknownTotal",
|
|
261
|
+
"searchHitCount",
|
|
262
|
+
"searchFailed"
|
|
236
263
|
];
|
|
237
264
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
238
265
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
@@ -251,6 +278,12 @@ type SourceTypeConfig = {
|
|
|
251
278
|
badgeClassName?: string;
|
|
252
279
|
allowComment?: boolean;
|
|
253
280
|
};
|
|
281
|
+
type DailyReportSearchSetting = {
|
|
282
|
+
readonly debounceMs: number | null;
|
|
283
|
+
};
|
|
284
|
+
type DailyReportSearchSettingInput = {
|
|
285
|
+
readonly debounceMs?: number;
|
|
286
|
+
};
|
|
254
287
|
type DailyReportClientConfig = {
|
|
255
288
|
apiBasePath: string;
|
|
256
289
|
ssePath: string;
|
|
@@ -263,11 +296,13 @@ type DailyReportClientConfig = {
|
|
|
263
296
|
headingLevel: 2 | 3 | 4 | 5;
|
|
264
297
|
onError?: (info: DailyReportErrorInfo) => void;
|
|
265
298
|
onSessionExpired: () => void;
|
|
299
|
+
search: DailyReportSearchSetting | null;
|
|
266
300
|
};
|
|
267
|
-
type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired">> & {
|
|
301
|
+
type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired" | "search">> & {
|
|
268
302
|
locale?: DailyReportLocale;
|
|
269
303
|
labels?: DailyReportLabelOverrides;
|
|
270
304
|
onSessionExpired: () => void;
|
|
305
|
+
search?: DailyReportSearchSettingInput;
|
|
271
306
|
};
|
|
272
307
|
type DailyReportClientConfigDefaults = Readonly<Pick<DailyReportClientConfig, "apiBasePath" | "ssePath" | "draftLabelName" | "renderHeader" | "showDevControls" | "headingLevel">>;
|
|
273
308
|
declare const defaultDailyReportClientConfig: DailyReportClientConfigDefaults;
|
|
@@ -446,6 +481,9 @@ type DailyReportActionState = {
|
|
|
446
481
|
items: DailyReportItem[];
|
|
447
482
|
isSseEnabled: boolean;
|
|
448
483
|
sseStatus: DailyReportSseConnectionStatus;
|
|
484
|
+
searchInvalidation: string;
|
|
485
|
+
isReportRemoved: (reportHubId: number) => boolean;
|
|
486
|
+
removedVersion: number;
|
|
449
487
|
};
|
|
450
488
|
type DailyReportActionContextType = DailyReportActions & DailyReportActionState;
|
|
451
489
|
declare global {
|
|
@@ -469,17 +507,7 @@ type DailyReportDetailResource = {
|
|
|
469
507
|
};
|
|
470
508
|
declare const useDailyReportDetail: (reportHubId: number, businessDate: string | null) => DailyReportDetailResource;
|
|
471
509
|
declare const useDailyReportPrefetch: () => (date: string | null) => void;
|
|
472
|
-
|
|
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) => {
|
|
510
|
+
declare const useDailyReportComments: (report: DailyReportDetail | null, user: Pick<DailyReportUser, "displayName" | "name" | "emails"> | null | undefined, userId?: string | null) => {
|
|
483
511
|
uiComments: UIComment[];
|
|
484
512
|
handleAddComment: (content: string) => Promise<void>;
|
|
485
513
|
handleDeleteComment: (cId: number) => Promise<void> | null;
|
|
@@ -496,5 +524,6 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
496
524
|
}): Promise<TServerData>;
|
|
497
525
|
hydrate: true;
|
|
498
526
|
};
|
|
527
|
+
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
528
|
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 };
|
|
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 };
|
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-
|
|
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-DqBqtqfA.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 & {
|
|
@@ -117,6 +118,16 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
117
118
|
readonly commentDeleteConfirm: string;
|
|
118
119
|
readonly unknownUser: string;
|
|
119
120
|
readonly sourceInternal: string;
|
|
121
|
+
readonly searchInputLabel: string;
|
|
122
|
+
readonly searchPlaceholder: string;
|
|
123
|
+
readonly searchCombineAnd: string;
|
|
124
|
+
readonly searchCombineOr: string;
|
|
125
|
+
readonly searchCombineAndTitle: string;
|
|
126
|
+
readonly searchCombineOrTitle: string;
|
|
127
|
+
readonly searchClear: string;
|
|
128
|
+
readonly searching: string;
|
|
129
|
+
readonly searchNoHits: string;
|
|
130
|
+
readonly searchSyntaxHelp: string;
|
|
120
131
|
readonly totalCount: (count: number) => string;
|
|
121
132
|
readonly debounce: (milliseconds: number) => string;
|
|
122
133
|
readonly streamProgressCount: (loaded: number) => string;
|
|
@@ -126,12 +137,15 @@ type DailyReportLabels = VirtualScrollLabels & {
|
|
|
126
137
|
readonly reportSummaryLoadFailed: (reportHubId: number) => string;
|
|
127
138
|
readonly interviewerWithAffiliation: (name: string, affiliation: string) => string;
|
|
128
139
|
readonly operationFailed: (operation: DailyReportOperation) => string;
|
|
140
|
+
readonly noticeRepeated: (count: number) => string;
|
|
129
141
|
readonly rowState: (state: {
|
|
130
142
|
readonly isRead: boolean;
|
|
131
143
|
readonly isStarred: boolean;
|
|
132
144
|
}) => string;
|
|
133
145
|
readonly listRowPosition: (position: number, total: number) => string;
|
|
134
146
|
readonly listRowPositionInUnknownTotal: (position: number) => string;
|
|
147
|
+
readonly searchHitCount: (count: number) => string;
|
|
148
|
+
readonly searchFailed: (failure: DailyReportSearchFailure) => string;
|
|
135
149
|
};
|
|
136
150
|
type DailyReportLabelOverrides = {
|
|
137
151
|
readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
|
|
@@ -221,6 +235,16 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
221
235
|
"commentDeleteConfirm",
|
|
222
236
|
"unknownUser",
|
|
223
237
|
"sourceInternal",
|
|
238
|
+
"searchInputLabel",
|
|
239
|
+
"searchPlaceholder",
|
|
240
|
+
"searchCombineAnd",
|
|
241
|
+
"searchCombineOr",
|
|
242
|
+
"searchCombineAndTitle",
|
|
243
|
+
"searchCombineOrTitle",
|
|
244
|
+
"searchClear",
|
|
245
|
+
"searching",
|
|
246
|
+
"searchNoHits",
|
|
247
|
+
"searchSyntaxHelp",
|
|
224
248
|
"totalCount",
|
|
225
249
|
"debounce",
|
|
226
250
|
"streamProgressCount",
|
|
@@ -230,9 +254,12 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
|
|
|
230
254
|
"reportSummaryLoadFailed",
|
|
231
255
|
"interviewerWithAffiliation",
|
|
232
256
|
"operationFailed",
|
|
257
|
+
"noticeRepeated",
|
|
233
258
|
"rowState",
|
|
234
259
|
"listRowPosition",
|
|
235
|
-
"listRowPositionInUnknownTotal"
|
|
260
|
+
"listRowPositionInUnknownTotal",
|
|
261
|
+
"searchHitCount",
|
|
262
|
+
"searchFailed"
|
|
236
263
|
];
|
|
237
264
|
declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
|
|
238
265
|
declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
|
|
@@ -251,6 +278,12 @@ type SourceTypeConfig = {
|
|
|
251
278
|
badgeClassName?: string;
|
|
252
279
|
allowComment?: boolean;
|
|
253
280
|
};
|
|
281
|
+
type DailyReportSearchSetting = {
|
|
282
|
+
readonly debounceMs: number | null;
|
|
283
|
+
};
|
|
284
|
+
type DailyReportSearchSettingInput = {
|
|
285
|
+
readonly debounceMs?: number;
|
|
286
|
+
};
|
|
254
287
|
type DailyReportClientConfig = {
|
|
255
288
|
apiBasePath: string;
|
|
256
289
|
ssePath: string;
|
|
@@ -263,11 +296,13 @@ type DailyReportClientConfig = {
|
|
|
263
296
|
headingLevel: 2 | 3 | 4 | 5;
|
|
264
297
|
onError?: (info: DailyReportErrorInfo) => void;
|
|
265
298
|
onSessionExpired: () => void;
|
|
299
|
+
search: DailyReportSearchSetting | null;
|
|
266
300
|
};
|
|
267
|
-
type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired">> & {
|
|
301
|
+
type DailyReportClientConfigInput = Partial<Omit<DailyReportClientConfig, "locale" | "labels" | "onSessionExpired" | "search">> & {
|
|
268
302
|
locale?: DailyReportLocale;
|
|
269
303
|
labels?: DailyReportLabelOverrides;
|
|
270
304
|
onSessionExpired: () => void;
|
|
305
|
+
search?: DailyReportSearchSettingInput;
|
|
271
306
|
};
|
|
272
307
|
type DailyReportClientConfigDefaults = Readonly<Pick<DailyReportClientConfig, "apiBasePath" | "ssePath" | "draftLabelName" | "renderHeader" | "showDevControls" | "headingLevel">>;
|
|
273
308
|
declare const defaultDailyReportClientConfig: DailyReportClientConfigDefaults;
|
|
@@ -446,6 +481,9 @@ type DailyReportActionState = {
|
|
|
446
481
|
items: DailyReportItem[];
|
|
447
482
|
isSseEnabled: boolean;
|
|
448
483
|
sseStatus: DailyReportSseConnectionStatus;
|
|
484
|
+
searchInvalidation: string;
|
|
485
|
+
isReportRemoved: (reportHubId: number) => boolean;
|
|
486
|
+
removedVersion: number;
|
|
449
487
|
};
|
|
450
488
|
type DailyReportActionContextType = DailyReportActions & DailyReportActionState;
|
|
451
489
|
declare global {
|
|
@@ -469,17 +507,7 @@ type DailyReportDetailResource = {
|
|
|
469
507
|
};
|
|
470
508
|
declare const useDailyReportDetail: (reportHubId: number, businessDate: string | null) => DailyReportDetailResource;
|
|
471
509
|
declare const useDailyReportPrefetch: () => (date: string | null) => void;
|
|
472
|
-
|
|
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) => {
|
|
510
|
+
declare const useDailyReportComments: (report: DailyReportDetail | null, user: Pick<DailyReportUser, "displayName" | "name" | "emails"> | null | undefined, userId?: string | null) => {
|
|
483
511
|
uiComments: UIComment[];
|
|
484
512
|
handleAddComment: (content: string) => Promise<void>;
|
|
485
513
|
handleDeleteComment: (cId: number) => Promise<void> | null;
|
|
@@ -496,5 +524,6 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
496
524
|
}): Promise<TServerData>;
|
|
497
525
|
hydrate: true;
|
|
498
526
|
};
|
|
527
|
+
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
528
|
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 };
|
|
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 };
|