@aiquants/daily-report 0.43.0 → 0.44.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 +167 -0
- package/README.md +211 -86
- package/dist/client.d.mts +11 -25
- package/dist/client.d.ts +11 -25
- package/dist/client.js +5 -5
- package/dist/client.mjs +5 -5
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/instrumentation-CobsTeyw.d.mts +70 -0
- package/dist/instrumentation-Dz7Uh7dT.d.ts +70 -0
- package/dist/{search-marks-wire-BSS2d1t6.d.ts → search-marks-wire-BiImBos8.d.mts} +16 -1
- package/dist/{search-marks-wire-BSS2d1t6.d.mts → search-marks-wire-C_vjmxwf.d.ts} +16 -1
- package/dist/server.d.mts +9 -5
- package/dist/server.d.ts +9 -5
- package/dist/server.js +10 -10
- package/dist/server.mjs +10 -10
- package/dist/{source-types-Bu-_yfcY.d.ts → source-types-Cg7T2dm6.d.ts} +1 -1
- package/dist/{source-types-NkQm-gNO.d.mts → source-types-Hy_znWJl.d.mts} +1 -1
- package/dist/{sse-schema-Br0b278w.d.mts → sse-schema-BcjRPJjN.d.ts} +2 -75
- package/dist/{sse-schema-Br0b278w.d.ts → sse-schema-sKBorzg9.d.mts} +2 -75
- package/dist/styles/daily-report.standalone.css +1 -1
- package/dist/testing.d.mts +39 -0
- package/dist/testing.d.ts +39 -0
- package/dist/testing.js +1 -0
- package/dist/testing.mjs +1 -0
- package/dist/types-BP1kIGMo.d.mts +75 -0
- package/dist/types-BP1kIGMo.d.ts +75 -0
- package/package.json +8 -3
package/dist/client.d.mts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as react from "react";
|
|
2
2
|
import { RefObject, ReactNode, Context } from "react";
|
|
3
|
-
import { D as
|
|
4
|
-
|
|
5
|
-
import { D as
|
|
6
|
-
|
|
3
|
+
import { D as DailyReportRows } from "./instrumentation-CobsTeyw.mjs";
|
|
4
|
+
export { a as DailyReportInstrumentation, b as DailyReportInstrumentationContext, I as DailyReportInstrumentedView, L as DailyReportListNavigationHandle, c as DailyReportRevealOptions, V as DailyReportViewInstrumentation } from "./instrumentation-CobsTeyw.mjs";
|
|
5
|
+
import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-BP1kIGMo.mjs";
|
|
6
|
+
import { VirtualScrollLocale, VirtualScrollLabels } from "@aiquants/virtualscroll";
|
|
7
|
+
import { D as DailyReportActionIntent, U as UIComment } from "./source-types-Hy_znWJl.mjs";
|
|
8
|
+
export { f as foldDailyReportSourceTypeToken } from "./source-types-Hy_znWJl.mjs";
|
|
7
9
|
import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.mjs";
|
|
8
10
|
export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.mjs";
|
|
9
11
|
import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
|
|
12
|
+
import { D as DailyReportSseStreamAnchor, a as DailyReportSseTerminalEvent, b as DailyReportSseMessage } from "./sse-schema-sKBorzg9.mjs";
|
|
10
13
|
import { ShouldRevalidateFunction } from "react-router";
|
|
11
14
|
import "zod/v3";
|
|
12
15
|
type DailyReportAttachmentIndicatorProps = {
|
|
@@ -15,7 +18,7 @@ type DailyReportAttachmentIndicatorProps = {
|
|
|
15
18
|
label: string;
|
|
16
19
|
};
|
|
17
20
|
declare const DailyReportAttachmentIndicator: ({ id, count, label }: DailyReportAttachmentIndicatorProps) => react.JSX.Element | null;
|
|
18
|
-
type
|
|
21
|
+
type DailyReportSelectionPhase = "held" | "settled";
|
|
19
22
|
type DailyReportDetailListScrollRestore = {
|
|
20
23
|
topItem: {
|
|
21
24
|
reportHubId: number;
|
|
@@ -30,7 +33,7 @@ type DailyReportDetailListProps = {
|
|
|
30
33
|
rowSetSize?: number;
|
|
31
34
|
userId?: string | null;
|
|
32
35
|
selectedItemId?: number | null;
|
|
33
|
-
onSelectItem?: (id: number | null) => void;
|
|
36
|
+
onSelectItem?: (id: number | null, phase: DailyReportSelectionPhase) => void;
|
|
34
37
|
scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
|
|
35
38
|
};
|
|
36
39
|
declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
|
|
@@ -334,7 +337,7 @@ type DailyReportListProps = {
|
|
|
334
337
|
rowSetSize?: number;
|
|
335
338
|
autoMarkRead?: boolean;
|
|
336
339
|
selectedReportHubId: number | null;
|
|
337
|
-
onSelectItem: (reportHubId: number | null) => void;
|
|
340
|
+
onSelectItem: (reportHubId: number | null, phase: DailyReportSelectionPhase) => void;
|
|
338
341
|
userId?: string | null;
|
|
339
342
|
scrollOffsetRef?: RefObject<number>;
|
|
340
343
|
};
|
|
@@ -412,23 +415,6 @@ type DailyReportResolvedContentProps = {
|
|
|
412
415
|
userId?: string | null;
|
|
413
416
|
};
|
|
414
417
|
declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
|
|
415
|
-
type ListNavigationHandle = Pick<VirtualScrollHandle, "getViewportSize" | "getScrollPosition" | "getScrollAnchor">;
|
|
416
|
-
type ListScrollToIndexOptions = NonNullable<Parameters<VirtualScrollHandle["scrollToIndex"]>[1]>;
|
|
417
|
-
type ViewTestReadHandle = ListNavigationHandle & Pick<VirtualScrollHandle, "getRange" | "getFenwickSize">;
|
|
418
|
-
type ViewTestHandle = ViewTestReadHandle & {
|
|
419
|
-
readonly findReportIndex: (id: number) => number;
|
|
420
|
-
readonly getReportItem: (index: number) => DailyReportItem | undefined;
|
|
421
|
-
readonly getReportIds: (limit?: number) => number[];
|
|
422
|
-
readonly revealIndex: (index: number, options: ListScrollToIndexOptions) => void;
|
|
423
|
-
readonly rowPass: {
|
|
424
|
-
readonly counters: () => {
|
|
425
|
-
readonly syncReleases: number;
|
|
426
|
-
readonly oversizeFrames: number;
|
|
427
|
-
readonly lateFrames: number;
|
|
428
|
-
readonly lateForcedFrames: number;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
};
|
|
432
418
|
type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
|
|
433
419
|
readonly kind: "resyncing";
|
|
434
420
|
};
|
|
@@ -520,4 +506,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
520
506
|
};
|
|
521
507
|
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]";
|
|
522
508
|
declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
|
|
523
|
-
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, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type
|
|
509
|
+
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, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type DailyReportRowBatch, DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSelectionPhase, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as react from "react";
|
|
2
2
|
import { RefObject, ReactNode, Context } from "react";
|
|
3
|
-
import { D as
|
|
4
|
-
|
|
5
|
-
import { D as
|
|
6
|
-
|
|
3
|
+
import { D as DailyReportRows } from "./instrumentation-Dz7Uh7dT.js";
|
|
4
|
+
export { a as DailyReportInstrumentation, b as DailyReportInstrumentationContext, I as DailyReportInstrumentedView, L as DailyReportListNavigationHandle, c as DailyReportRevealOptions, V as DailyReportViewInstrumentation } from "./instrumentation-Dz7Uh7dT.js";
|
|
5
|
+
import { D as DailyReportItem, a as DailyReportUser, b as DailyReportDetail } from "./types-BP1kIGMo.js";
|
|
6
|
+
import { VirtualScrollLocale, VirtualScrollLabels } from "@aiquants/virtualscroll";
|
|
7
|
+
import { D as DailyReportActionIntent, U as UIComment } from "./source-types-Cg7T2dm6.js";
|
|
8
|
+
export { f as foldDailyReportSourceTypeToken } from "./source-types-Cg7T2dm6.js";
|
|
7
9
|
import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.js";
|
|
8
10
|
export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.js";
|
|
9
11
|
import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
|
|
12
|
+
import { D as DailyReportSseStreamAnchor, a as DailyReportSseTerminalEvent, b as DailyReportSseMessage } from "./sse-schema-BcjRPJjN.js";
|
|
10
13
|
import { ShouldRevalidateFunction } from "react-router";
|
|
11
14
|
import "zod/v3";
|
|
12
15
|
type DailyReportAttachmentIndicatorProps = {
|
|
@@ -15,7 +18,7 @@ type DailyReportAttachmentIndicatorProps = {
|
|
|
15
18
|
label: string;
|
|
16
19
|
};
|
|
17
20
|
declare const DailyReportAttachmentIndicator: ({ id, count, label }: DailyReportAttachmentIndicatorProps) => react.JSX.Element | null;
|
|
18
|
-
type
|
|
21
|
+
type DailyReportSelectionPhase = "held" | "settled";
|
|
19
22
|
type DailyReportDetailListScrollRestore = {
|
|
20
23
|
topItem: {
|
|
21
24
|
reportHubId: number;
|
|
@@ -30,7 +33,7 @@ type DailyReportDetailListProps = {
|
|
|
30
33
|
rowSetSize?: number;
|
|
31
34
|
userId?: string | null;
|
|
32
35
|
selectedItemId?: number | null;
|
|
33
|
-
onSelectItem?: (id: number | null) => void;
|
|
36
|
+
onSelectItem?: (id: number | null, phase: DailyReportSelectionPhase) => void;
|
|
34
37
|
scrollRestoreRef?: RefObject<DailyReportDetailListScrollRestore>;
|
|
35
38
|
};
|
|
36
39
|
declare const DailyReportDetailList: (props: DailyReportDetailListProps) => react.JSX.Element;
|
|
@@ -334,7 +337,7 @@ type DailyReportListProps = {
|
|
|
334
337
|
rowSetSize?: number;
|
|
335
338
|
autoMarkRead?: boolean;
|
|
336
339
|
selectedReportHubId: number | null;
|
|
337
|
-
onSelectItem: (reportHubId: number | null) => void;
|
|
340
|
+
onSelectItem: (reportHubId: number | null, phase: DailyReportSelectionPhase) => void;
|
|
338
341
|
userId?: string | null;
|
|
339
342
|
scrollOffsetRef?: RefObject<number>;
|
|
340
343
|
};
|
|
@@ -412,23 +415,6 @@ type DailyReportResolvedContentProps = {
|
|
|
412
415
|
userId?: string | null;
|
|
413
416
|
};
|
|
414
417
|
declare const DailyReportResolvedContent: ({ userId }: DailyReportResolvedContentProps) => react.JSX.Element;
|
|
415
|
-
type ListNavigationHandle = Pick<VirtualScrollHandle, "getViewportSize" | "getScrollPosition" | "getScrollAnchor">;
|
|
416
|
-
type ListScrollToIndexOptions = NonNullable<Parameters<VirtualScrollHandle["scrollToIndex"]>[1]>;
|
|
417
|
-
type ViewTestReadHandle = ListNavigationHandle & Pick<VirtualScrollHandle, "getRange" | "getFenwickSize">;
|
|
418
|
-
type ViewTestHandle = ViewTestReadHandle & {
|
|
419
|
-
readonly findReportIndex: (id: number) => number;
|
|
420
|
-
readonly getReportItem: (index: number) => DailyReportItem | undefined;
|
|
421
|
-
readonly getReportIds: (limit?: number) => number[];
|
|
422
|
-
readonly revealIndex: (index: number, options: ListScrollToIndexOptions) => void;
|
|
423
|
-
readonly rowPass: {
|
|
424
|
-
readonly counters: () => {
|
|
425
|
-
readonly syncReleases: number;
|
|
426
|
-
readonly oversizeFrames: number;
|
|
427
|
-
readonly lateFrames: number;
|
|
428
|
-
readonly lateForcedFrames: number;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
};
|
|
432
418
|
type DailyReportSseConnectionStatus = UseReopeningEventSourceResult<DailyReportSseTerminalEvent>["status"] | {
|
|
433
419
|
readonly kind: "resyncing";
|
|
434
420
|
};
|
|
@@ -520,4 +506,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
|
|
|
520
506
|
};
|
|
521
507
|
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]";
|
|
522
508
|
declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
|
|
523
|
-
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, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type
|
|
509
|
+
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, type DailyReportIdsStreamItemReplacements, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type DailyReportRowBatch, DailyReportRows, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSelectionPhase, type SourceTypeConfig as DailyReportSourceTypeConfig, type DailyReportSseConnectionStatus, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, readDailyReportIdsStreamRows, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
|