@metaboliccode-dev/widget 0.2.3 → 0.2.4
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/README.md +1 -1
- package/dist/MetabolicDashboard/MetabolicDashboard.d.ts +1 -1
- package/dist/MetabolicDashboard/api/downloadReportPdf.d.ts +6 -0
- package/dist/MetabolicDashboard/api/index.d.ts +2 -0
- package/dist/MetabolicDashboard/api/mappers/shared.d.ts +3 -4
- package/dist/MetabolicDashboard/api/metabolicDashboardApiKey.d.ts +1 -1
- package/dist/MetabolicDashboard/api/reportPageTypes.d.ts +29 -17
- package/dist/MetabolicDashboard/dashboardActionsContext.d.ts +5 -0
- package/dist/MetabolicDashboard/index.d.ts +2 -2
- package/dist/MetabolicDashboard/metabolicDashboard/useMetabolicDashboardResolvedContentSources.d.ts +3 -2
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/DashboardTab/AlertLabSummarySection.d.ts +4 -0
- package/dist/components/DashboardTab/CategoryTableRow.d.ts +4 -0
- package/dist/components/DashboardTab/TotalPredictiveTrendsSection.d.ts +4 -0
- package/dist/components/DashboardTab/index.d.ts +2 -2
- package/dist/components/LabResultsTab/index.d.ts +2 -2
- package/dist/components/SuggestedProductsTab/index.d.ts +1 -1
- package/dist/components/SupplementScheduleTab/index.d.ts +1 -1
- package/dist/components/dashboard/components/composite/GradientRangeBar.d.ts +14 -0
- package/dist/components/dashboard/components/composite/index.d.ts +2 -0
- package/dist/components/dashboard/constants.d.ts +1 -0
- package/dist/components/dashboard/data/contentTypes.d.ts +7 -14
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2186 -2188
- package/dist/layout/types.d.ts +10 -0
- package/package.json +2 -1
- package/dist/components/SuggestedProductsTab/fallbackData.d.ts +0 -2
- package/dist/components/SupplementScheduleTab/fallbackData.d.ts +0 -2
package/dist/layout/types.d.ts
CHANGED
|
@@ -41,6 +41,14 @@ export type SideMenuProps = {
|
|
|
41
41
|
onNavItemPrefetch?: (id: string) => void;
|
|
42
42
|
};
|
|
43
43
|
export type MetabolicDashboardViewerRole = "practitioner" | "patient";
|
|
44
|
+
export type MetabolicDashboardReportHttpConfig = {
|
|
45
|
+
baseUrl?: string;
|
|
46
|
+
apiKey?: string;
|
|
47
|
+
userId?: string;
|
|
48
|
+
reportId?: string;
|
|
49
|
+
headers?: HeadersInit;
|
|
50
|
+
fetchImpl?: typeof fetch;
|
|
51
|
+
};
|
|
44
52
|
export type MetabolicDashboardProps = {
|
|
45
53
|
config?: MetabolicDashboardConfig;
|
|
46
54
|
apiKey?: string;
|
|
@@ -52,8 +60,10 @@ export type MetabolicDashboardProps = {
|
|
|
52
60
|
onSideMenuButtonClick?: () => void;
|
|
53
61
|
sideMenuUserProfile?: SideMenuUserProfile;
|
|
54
62
|
content?: ReactNode;
|
|
63
|
+
reportHttpConfig?: MetabolicDashboardReportHttpConfig;
|
|
55
64
|
dashboardContentFetchers?: Partial<DashboardContentFetchers>;
|
|
56
65
|
onDashboardTabContentLoadError?: (info: DashboardTabContentLoadErrorInfo) => void;
|
|
66
|
+
onExportReports?: () => void | Promise<void>;
|
|
57
67
|
renderMainContent?: (activeItemId: string) => ReactNode;
|
|
58
68
|
activeNavItemId?: string;
|
|
59
69
|
defaultActiveNavItemId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaboliccode-dev/widget",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"dev:iframe": "vite dev --config vite.config.iframe.ts",
|
|
67
|
+
"dev:lib": "vite build --config vite.config.lib.ts --watch",
|
|
67
68
|
"build:lib": "vite build --config vite.config.lib.ts && tsc -p tsconfig.build.json",
|
|
68
69
|
"build:iframe": "vite build --config vite.config.iframe.ts",
|
|
69
70
|
"build": "npm run build:lib && npm run build:iframe",
|