@metaboliccode-dev/widget 0.2.81 → 0.2.82
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.
|
@@ -2,9 +2,10 @@ import { type CSSProperties, type ReactNode } from "react";
|
|
|
2
2
|
import type { MetabolicDashboardReportHttpConfig } from "../../layout";
|
|
3
3
|
import type { SoapNotesData } from "./types";
|
|
4
4
|
import "./soapNotes.css";
|
|
5
|
-
export declare function SoapNotesProvider({ initial, config, activePage, onNavigate, style, children, }: {
|
|
5
|
+
export declare function SoapNotesProvider({ initial, config, readPage, activePage, onNavigate, style, children, }: {
|
|
6
6
|
initial?: SoapNotesData;
|
|
7
7
|
config: MetabolicDashboardReportHttpConfig;
|
|
8
|
+
readPage?: "questionnaire-analysis";
|
|
8
9
|
activePage: string;
|
|
9
10
|
onNavigate: (page: string) => void;
|
|
10
11
|
style: CSSProperties;
|
|
@@ -4,4 +4,4 @@ export declare class SoapNotesError extends Error {
|
|
|
4
4
|
readonly status: number;
|
|
5
5
|
constructor(status: number, code: string);
|
|
6
6
|
}
|
|
7
|
-
export declare function createSoapNotesClient(config: MetabolicDashboardReportHttpConfig): (reportId: string, operation: SoapNoteOperation | "list", input?: SoapNoteInput, signal?: AbortSignal) => Promise<SoapNotesData>;
|
|
7
|
+
export declare function createSoapNotesClient(config: MetabolicDashboardReportHttpConfig, readPage?: "questionnaire-analysis"): (reportId: string | undefined, operation: SoapNoteOperation | "list", input?: SoapNoteInput, signal?: AbortSignal) => Promise<SoapNotesData>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MetabolicDashboardReportHttpConfig } from "../../layout";
|
|
2
2
|
import type { SoapNoteInput, SoapNoteOperation, SoapNotesData } from "./types";
|
|
3
|
-
export declare function useSoapNotes(initial: SoapNotesData | undefined, config: MetabolicDashboardReportHttpConfig): {
|
|
3
|
+
export declare function useSoapNotes(initial: SoapNotesData | undefined, config: MetabolicDashboardReportHttpConfig, readPage?: "questionnaire-analysis"): {
|
|
4
4
|
data: SoapNotesData | undefined;
|
|
5
5
|
error: string | undefined;
|
|
6
6
|
busy: boolean;
|