@moh-sso/report-browser 0.0.0-stage → 1.3.2
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 +24 -2
- package/dist/_types/apps/report-browser/src/index.d.ts +3 -0
- package/dist/_types/apps/report-browser/src/pages/report-broswer.d.ts +2 -0
- package/dist/_types/apps/report-browser/src/root.component.d.ts +2 -0
- package/dist/_types/apps/report-browser/src/routes.d.ts +2 -0
- package/dist/_types/apps/report-browser/src/single-spa.d.ts +1 -0
- package/dist/_types/packages/api/src/api/baseApi.d.ts +2 -0
- package/dist/_types/packages/api/src/index.d.ts +1 -0
- package/dist/_types/packages/auth/src/api/auth.api.d.ts +531 -0
- package/dist/_types/packages/auth/src/api/health-context.api.d.ts +374 -0
- package/dist/_types/packages/auth/src/auth/AuthBootstrap.d.ts +1 -0
- package/dist/_types/packages/auth/src/auth/HealthContextProvider.d.ts +20 -0
- package/dist/_types/packages/auth/src/auth/PermissionGuard.d.ts +10 -0
- package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +896 -0
- package/dist/_types/packages/auth/src/auth/auth.slice.d.ts +14 -0
- package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -0
- package/dist/_types/packages/auth/src/auth/login-url.d.ts +2 -0
- package/dist/_types/packages/auth/src/auth/permissions.d.ts +58 -0
- package/dist/_types/packages/auth/src/auth/rbac.d.ts +8 -0
- package/dist/_types/packages/auth/src/auth/system-launch-url.d.ts +9 -0
- package/dist/_types/packages/auth/src/auth/useAuthorization.d.ts +14 -0
- package/dist/_types/packages/auth/src/index.d.ts +14 -0
- package/dist/_types/packages/config/src/appMeta.d.ts +3 -0
- package/dist/_types/packages/config/src/index.d.ts +6 -0
- package/dist/_types/packages/config/src/lib/constants/api.constants.d.ts +178 -0
- package/dist/_types/packages/config/src/lib/constants/document-templates.d.ts +11 -0
- package/dist/_types/packages/config/src/lib/errors/errorMessages.d.ts +2 -0
- package/dist/_types/packages/config/src/lib/errors/errorSeverity.d.ts +3 -0
- package/dist/_types/packages/config/src/lib/errors/errorTypes.d.ts +1 -0
- package/dist/_types/packages/microfrontend/src/basename.d.ts +1 -0
- package/dist/_types/packages/microfrontend/src/index.d.ts +6 -0
- package/dist/_types/packages/microfrontend/src/lifecycle.d.ts +6 -0
- package/dist/_types/packages/microfrontend/src/navigation.d.ts +2 -0
- package/dist/_types/packages/microfrontend/src/props.d.ts +44 -0
- package/dist/_types/packages/microfrontend/src/react-lifecycle.d.ts +11 -0
- package/dist/_types/packages/microfrontend/src/routes.d.ts +13 -0
- package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +534 -0
- package/dist/_types/packages/state/src/clients/clients.slice.d.ts +4 -0
- package/dist/_types/packages/state/src/document/documents.selectors.d.ts +1 -0
- package/dist/_types/packages/state/src/index.d.ts +29 -0
- package/dist/_types/packages/state/src/ui/ui.state.d.ts +1 -0
- package/dist/_types/packages/types/src/index.d.ts +6 -0
- package/dist/_types/packages/types/src/types/announcement-summary.types.d.ts +16 -0
- package/dist/_types/packages/types/src/types/client-role.types.d.ts +6 -0
- package/dist/_types/packages/types/src/types/client.types.d.ts +46 -0
- package/dist/_types/packages/types/src/types/document-processing.types.d.ts +1 -0
- package/dist/_types/packages/types/src/types/notifications.types.d.ts +96 -0
- package/dist/_types/packages/types/src/types/system-navigation.types.d.ts +18 -0
- package/dist/_types/packages/ui/src/accessibility/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +10 -0
- package/dist/_types/packages/ui/src/branding/BuildMeta.d.ts +6 -0
- package/dist/_types/packages/ui/src/branding/PublicFooter.d.ts +6 -0
- package/dist/_types/packages/ui/src/branding/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/data-display/DataTablePagination.d.ts +12 -0
- package/dist/_types/packages/ui/src/data-display/DataTableShell.d.ts +35 -0
- package/dist/_types/packages/ui/src/data-display/RowActionsCell.d.ts +7 -0
- package/dist/_types/packages/ui/src/data-display/TableEmptyState.d.ts +8 -0
- package/dist/_types/packages/ui/src/data-display/TableStatusTag.d.ts +8 -0
- package/dist/_types/packages/ui/src/data-display/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/feedback/comingsoon/ComingSoon.d.ts +7 -0
- package/dist/_types/packages/ui/src/feedback/emptystate/EmptyState.d.ts +15 -0
- package/dist/_types/packages/ui/src/feedback/errorstate/ErrorState.d.ts +14 -0
- package/dist/_types/packages/ui/src/feedback/errorstate/MicrofrontendErrorBoundary.d.ts +16 -0
- package/dist/_types/packages/ui/src/feedback/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/feedback/loadingstate/LoadingState.d.ts +5 -0
- package/dist/_types/packages/ui/src/forms/CaseFormsGrid.d.ts +1 -0
- package/dist/_types/packages/ui/src/forms/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/index.d.ts +16 -0
- package/dist/_types/packages/ui/src/layout/PageShell/PageShell.d.ts +9 -0
- package/dist/_types/packages/ui/src/layout/SectionCard/SectionCard.d.ts +11 -0
- package/dist/_types/packages/ui/src/layout/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppGridContent.d.ts +12 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppMenu.component.d.ts +6 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppMenuItem.component.d.ts +13 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/appMenuGroups.d.ts +11 -0
- package/dist/_types/packages/ui/src/navigation/breadcrumbs/AppBreadcrumbs.d.ts +12 -0
- package/dist/_types/packages/ui/src/navigation/breadcrumbs/BreadcrumbBar.d.ts +10 -0
- package/dist/_types/packages/ui/src/navigation/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/navigation/sidenav/ClientSideNav.d.ts +14 -0
- package/dist/_types/packages/ui/src/notifications/FormInlineAlert.d.ts +7 -0
- package/dist/_types/packages/ui/src/notifications/NotificationsPanel.d.ts +14 -0
- package/dist/_types/packages/ui/src/notifications/index.d.ts +4 -0
- package/dist/_types/packages/ui/src/notifications/toast/ToastProvider.d.ts +20 -0
- package/dist/_types/packages/ui/src/notifications/toast/useToast.d.ts +20 -0
- package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +17 -0
- package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +23 -0
- package/dist/_types/packages/ui/src/overlays/index.d.ts +4 -0
- package/dist/_types/packages/ui/src/overlays/modal/ReusableModal.d.ts +20 -0
- package/dist/_types/packages/ui/src/overlays/modal/modal.context.d.ts +14 -0
- package/dist/_types/packages/ui/src/shell/ExternalAppHeader.d.ts +22 -0
- package/dist/_types/packages/ui/src/shell/PublicHeader.component.d.ts +8 -0
- package/dist/_types/packages/ui/src/shell/UserHeader.component.d.ts +17 -0
- package/dist/_types/packages/ui/src/shell/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/theme/ThemeProvider.d.ts +8 -0
- package/dist/_types/packages/ui/src/theme/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/utils/severity.d.ts +22 -0
- package/dist/_types/packages/ui/src/utils/status.d.ts +1 -0
- package/dist/assets/report-browser-DDdJuJLw.css +1 -0
- package/dist/assets/root.component-CPAcgh9K.js +29 -0
- package/dist/assets/root.component-CPAcgh9K.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +34 -0
- package/dist/routes.js.map +1 -0
- package/dist/single-spa.d.ts +1 -0
- package/dist/single-spa.js +32 -0
- package/dist/single-spa.js.map +1 -0
- package/package.json +50 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ReusableModalProps } from "./ReusableModal";
|
|
3
|
+
type ModalState = Omit<ReusableModalProps, "open"> & {
|
|
4
|
+
open: boolean;
|
|
5
|
+
};
|
|
6
|
+
type ModalContextType = {
|
|
7
|
+
openModal: (config: Omit<ModalState, "open">) => void;
|
|
8
|
+
closeModal: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function ModalProvider({ children }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
export declare function useModal(): ModalContextType;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ExternalAppLink = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
/** Absolute HTTP(S) launch URL approved by the application's backend. */
|
|
5
|
+
href: string;
|
|
6
|
+
};
|
|
7
|
+
export type ExternalAppHeaderProps = {
|
|
8
|
+
appName: string;
|
|
9
|
+
username: string;
|
|
10
|
+
/** Absolute portal launcher URL, including its deployment base path. */
|
|
11
|
+
portalUrl: string;
|
|
12
|
+
/** Supply only applications this user may launch. No portal API is called here. */
|
|
13
|
+
applications?: ExternalAppLink[];
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
isError?: boolean;
|
|
16
|
+
onRetry?: () => void;
|
|
17
|
+
onProfile: () => void;
|
|
18
|
+
/** End the local application session and initiate the application's OIDC logout. */
|
|
19
|
+
onLogout: () => void;
|
|
20
|
+
};
|
|
21
|
+
/** Shared MOH chrome for independently hosted React apps. Requires no portal auth/store/router. */
|
|
22
|
+
export declare function ExternalAppHeader({ appName, username, portalUrl, applications, isLoading, isError, onRetry, onProfile, onLogout, }: ExternalAppHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type UserHeaderProps = {
|
|
4
|
+
appName?: string;
|
|
5
|
+
homeHref?: string;
|
|
6
|
+
username?: string | null;
|
|
7
|
+
appMenu?: ReactNode;
|
|
8
|
+
contextSelector?: ReactNode;
|
|
9
|
+
onNavigateHome?: () => void;
|
|
10
|
+
onLogout?: () => void;
|
|
11
|
+
onProfile?: () => void;
|
|
12
|
+
navigationExpanded?: boolean;
|
|
13
|
+
onToggleNavigation?: () => void;
|
|
14
|
+
onGlobalAction?: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const UserHeader: React.FC<UserHeaderProps>;
|
|
17
|
+
export default UserHeader;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as PublicHeader } from "./PublicHeader.component";
|
|
2
|
+
export { default as UserHeader } from "./UserHeader.component";
|
|
3
|
+
export type { UserHeaderProps } from "./UserHeader.component";
|
|
4
|
+
export { ExternalAppHeader } from "./ExternalAppHeader";
|
|
5
|
+
export type { ExternalAppHeaderProps, ExternalAppLink } from "./ExternalAppHeader";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type MohTheme = "white" | "g10" | "g90" | "g100";
|
|
3
|
+
type MohThemeProviderProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
theme?: MohTheme;
|
|
6
|
+
};
|
|
7
|
+
export declare function MohThemeProvider({ children, theme }: MohThemeProviderProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MohThemeProvider } from "./ThemeProvider";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ---------------------------------------------------
|
|
3
|
+
* Domain Severity (Business Layer)
|
|
4
|
+
* ---------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
export type Severity = "info" | "success" | "warning" | "critical" | "danger";
|
|
7
|
+
/**
|
|
8
|
+
* ---------------------------------------------------
|
|
9
|
+
* Carbon Tag Type
|
|
10
|
+
* ---------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
export type CarbonTagType = "red" | "magenta" | "purple" | "blue" | "cyan" | "teal" | "green" | "gray" | "cool-gray" | "warm-gray" | "high-contrast" | "outline";
|
|
13
|
+
export declare function isSeverity(value: unknown): value is Severity;
|
|
14
|
+
export declare function normalizeSeverity(value?: string | null): Severity;
|
|
15
|
+
/**
|
|
16
|
+
* ---------------------------------------------------
|
|
17
|
+
* Public Helpers
|
|
18
|
+
* ---------------------------------------------------
|
|
19
|
+
*/
|
|
20
|
+
export declare const getSeverityTagType: (severity?: string | null) => CarbonTagType;
|
|
21
|
+
export declare const getSeverityLabel: (severity?: string | null) => string;
|
|
22
|
+
export declare const getSeverityRank: (severity?: string | null) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.report-browser{width:100%;height:100vh;overflow:hidden}.report-browser__frame{width:100%;height:100%;border:0}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { PageShell as t } from "@moh-sso/ui";
|
|
3
|
+
const s = () => {
|
|
4
|
+
const o = window.__APP_CONFIG__?.HEALTH_BI_BASE_URL || void 0 || "https://dashboards.health.go.ug/report-browser";
|
|
5
|
+
return /* @__PURE__ */ r("div", { className: "report-browser", children: /* @__PURE__ */ r(
|
|
6
|
+
"iframe",
|
|
7
|
+
{
|
|
8
|
+
src: `${o.replace(/\/$/, "")}/`,
|
|
9
|
+
title: "Health Dashboard Report Browser",
|
|
10
|
+
className: "report-browser__frame",
|
|
11
|
+
allowFullScreen: !0
|
|
12
|
+
}
|
|
13
|
+
) });
|
|
14
|
+
};
|
|
15
|
+
function n(e) {
|
|
16
|
+
return /* @__PURE__ */ r("div", { className: "moh-microfrontend-root", children: /* @__PURE__ */ r(
|
|
17
|
+
t,
|
|
18
|
+
{
|
|
19
|
+
title: "Report Browser",
|
|
20
|
+
subtitle: "Browse health dashboards and reports.",
|
|
21
|
+
children: /* @__PURE__ */ r(s, {})
|
|
22
|
+
}
|
|
23
|
+
) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
s as R,
|
|
27
|
+
n as a
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=root.component-CPAcgh9K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.component-CPAcgh9K.js","sources":["../../src/pages/report-broswer.tsx","../../src/root.component.tsx"],"sourcesContent":["import \"./report-browser.scss\";\n\nconst ReportBrowser = () => {\n const config = (window as Window & { __APP_CONFIG__?: { HEALTH_BI_BASE_URL?: string } })\n .__APP_CONFIG__;\n const baseUrl =\n config?.HEALTH_BI_BASE_URL ||\n import.meta.env.VITE_HEALTH_BI_BASE_URL ||\n \"https://dashboards.health.go.ug/report-browser\";\n return (\n <div className=\"report-browser\">\n <iframe\n src={`${baseUrl.replace(/\\/$/, \"\")}/`}\n title=\"Health Dashboard Report Browser\"\n className=\"report-browser__frame\"\n allowFullScreen\n />\n </div>\n );\n};\n\nexport default ReportBrowser;\n","import { PageShell } from \"@moh-sso/ui\";\nimport type { MicrofrontendRuntimeProps } from \"@moh-sso/microfrontend\";\n\nimport ReportBrowser from \"./pages/report-broswer\";\n\nexport function ReportBrowserRoot(props: MicrofrontendRuntimeProps) {\n void props;\n\n return (\n <div className=\"moh-microfrontend-root\">\n <PageShell\n title=\"Report Browser\"\n subtitle=\"Browse health dashboards and reports.\"\n >\n <ReportBrowser />\n </PageShell>\n </div>\n );\n}\n"],"names":["ReportBrowser","baseUrl","jsx","ReportBrowserRoot","props","PageShell"],"mappings":";;AAEA,MAAMA,IAAgB,MAAM;AAG1B,QAAMC,IAFU,OACb,gBAEO,sBACR,UACA;AACF,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAU,kBACb,UAAA,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK,GAAGD,EAAQ,QAAQ,OAAO,EAAE,CAAC;AAAA,MAClC,OAAM;AAAA,MACN,WAAU;AAAA,MACV,iBAAe;AAAA,IAAA;AAAA,EAAA,GAEnB;AAEJ;ACdO,SAASE,EAAkBC,GAAkC;AAGlE,SACE,gBAAAF,EAAC,OAAA,EAAI,WAAU,0BACb,UAAA,gBAAAA;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,UAAS;AAAA,MAET,4BAACL,GAAA,CAAA,CAAc;AAAA,IAAA;AAAA,EAAA,GAEnB;AAEJ;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/apps/report-browser/src/index.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const __mohCssFiles = [new URL("assets/report-browser-DDdJuJLw.css", import.meta.url).href];
|
|
3
|
+
const __mohInjectCss = () => {
|
|
4
|
+
if (typeof document === "undefined") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const file of __mohCssFiles) {
|
|
9
|
+
const href = file;
|
|
10
|
+
if (document.querySelector('link[data-moh-css="' + href + '"]')) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const link = document.createElement("link");
|
|
15
|
+
link.rel = "stylesheet";
|
|
16
|
+
link.href = href;
|
|
17
|
+
link.setAttribute("data-moh-css", href);
|
|
18
|
+
document.head.appendChild(link);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
queueMicrotask(__mohInjectCss);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
import { R as e, a as t } from "./assets/root.component-CPAcgh9K.js";
|
|
25
|
+
import { reportBrowserRoute as s } from "./routes.js";
|
|
26
|
+
export {
|
|
27
|
+
e as ReportBrowser,
|
|
28
|
+
t as ReportBrowserRoot,
|
|
29
|
+
s as reportBrowserRoute
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/routes.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/apps/report-browser/src/routes.js";
|
package/dist/routes.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
const __mohCssFiles = [new URL("assets/report-browser-DDdJuJLw.css", import.meta.url).href];
|
|
3
|
+
const __mohInjectCss = () => {
|
|
4
|
+
if (typeof document === "undefined") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const file of __mohCssFiles) {
|
|
9
|
+
const href = file;
|
|
10
|
+
if (document.querySelector('link[data-moh-css="' + href + '"]')) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const link = document.createElement("link");
|
|
15
|
+
link.rel = "stylesheet";
|
|
16
|
+
link.href = href;
|
|
17
|
+
link.setAttribute("data-moh-css", href);
|
|
18
|
+
document.head.appendChild(link);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
queueMicrotask(__mohInjectCss);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const r = {
|
|
25
|
+
appName: "@moh-sso/report-browser",
|
|
26
|
+
path: "/apps/dwh/dashboards",
|
|
27
|
+
paths: ["/apps/dwh/dashboards"],
|
|
28
|
+
requiredPermissions: ["report_browser:read"],
|
|
29
|
+
requiredSystems: ["data-statistics"]
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
r as reportBrowserRoute
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sources":["../src/routes.tsx"],"sourcesContent":["import type { MicrofrontendRoute } from \"@moh-sso/microfrontend\";\n\nexport const reportBrowserRoute: MicrofrontendRoute = {\n appName: \"@moh-sso/report-browser\",\n path: \"/apps/dwh/dashboards\",\n paths: [\"/apps/dwh/dashboards\"],\n requiredPermissions: [\"report_browser:read\"],\n requiredSystems: [\"data-statistics\"],\n};\n"],"names":["reportBrowserRoute"],"mappings":"AAEO,MAAMA,IAAyC;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO,CAAC,sBAAsB;AAAA,EAC9B,qBAAqB,CAAC,qBAAqB;AAAA,EAC3C,iBAAiB,CAAC,iBAAiB;AACrC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/apps/report-browser/src/single-spa.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
const __mohCssFiles = [new URL("assets/report-browser-DDdJuJLw.css", import.meta.url).href];
|
|
3
|
+
const __mohInjectCss = () => {
|
|
4
|
+
if (typeof document === "undefined") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const file of __mohCssFiles) {
|
|
9
|
+
const href = file;
|
|
10
|
+
if (document.querySelector('link[data-moh-css="' + href + '"]')) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const link = document.createElement("link");
|
|
15
|
+
link.rel = "stylesheet";
|
|
16
|
+
link.href = href;
|
|
17
|
+
link.setAttribute("data-moh-css", href);
|
|
18
|
+
document.head.appendChild(link);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
queueMicrotask(__mohInjectCss);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
import { createReactMicrofrontendLifecycle as o } from "@moh-sso/microfrontend";
|
|
25
|
+
import { a as t } from "./assets/root.component-CPAcgh9K.js";
|
|
26
|
+
const { bootstrap: c, mount: m, unmount: n } = o(t);
|
|
27
|
+
export {
|
|
28
|
+
c as bootstrap,
|
|
29
|
+
m as mount,
|
|
30
|
+
n as unmount
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=single-spa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"single-spa.js","sources":["../src/single-spa.tsx"],"sourcesContent":["import { createReactMicrofrontendLifecycle } from \"@moh-sso/microfrontend\";\n\nimport { ReportBrowserRoot } from \"./root.component\";\n\nexport const { bootstrap, mount, unmount } = createReactMicrofrontendLifecycle(ReportBrowserRoot);\n"],"names":["bootstrap","mount","unmount","createReactMicrofrontendLifecycle","ReportBrowserRoot"],"mappings":";;AAIO,MAAM,EAAE,WAAAA,GAAW,OAAAC,GAAO,SAAAC,EAAA,IAAYC,EAAkCC,CAAiB;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moh-sso/report-browser",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"type": "module",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./single-spa": {
|
|
12
|
+
"types": "./dist/single-spa.d.ts",
|
|
13
|
+
"import": "./dist/single-spa.js"
|
|
14
|
+
},
|
|
15
|
+
"./routes": {
|
|
16
|
+
"types": "./dist/routes.d.ts",
|
|
17
|
+
"import": "./dist/routes.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"version": "1.3.2",
|
|
21
|
+
"license": "UNLICENSED",
|
|
22
|
+
"module": "./dist/index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"package.json"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "vite build --config vite.config.ts && node ../../scripts/write-package-declarations.mjs app report-browser",
|
|
30
|
+
"dev": "vite --config vite.config.ts --host 0.0.0.0",
|
|
31
|
+
"preview": "vite preview --config vite.config.ts"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@moh-sso/microfrontend": "^1.3.2",
|
|
38
|
+
"@moh-sso/ui": "^1.3.2"
|
|
39
|
+
},
|
|
40
|
+
"private": false,
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^19.2.0",
|
|
43
|
+
"react-dom": "^19.2.0",
|
|
44
|
+
"react-redux": "^9.2.0",
|
|
45
|
+
"single-spa": "^6.0.3"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/mohuganda/moh-sso-dashboard.git",
|
|
50
|
+
"directory": "frontend/apps/report-browser"
|
|
51
|
+
}
|
|
52
|
+
}
|