@pablo2410/shared-ui 0.17.1 → 0.17.3

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.
@@ -13,7 +13,7 @@ import {
13
13
  Tooltip,
14
14
  TooltipContent,
15
15
  TooltipTrigger
16
- } from "./chunk-NTFR5ZIF.js";
16
+ } from "./chunk-PLCWXXUE.js";
17
17
  import {
18
18
  cn
19
19
  } from "./chunk-JT3XLKKD.js";
@@ -607,4 +607,4 @@ export {
607
607
  hierarchyCodeFor,
608
608
  HierarchyNavigator
609
609
  };
610
- //# sourceMappingURL=chunk-R7B4WRSL.js.map
610
+ //# sourceMappingURL=chunk-WTR6SNOE.js.map
@@ -6,7 +6,7 @@ import {
6
6
  hierarchyCodeFor,
7
7
  idReference,
8
8
  readActiveEnterpriseCookie
9
- } from "../chunk-R7B4WRSL.js";
9
+ } from "../chunk-WTR6SNOE.js";
10
10
  import {
11
11
  ORG_HIERARCHY_PARAM,
12
12
  appendSelectionParam,
@@ -27,7 +27,7 @@ import {
27
27
  ORG_HIERARCHY_LABELS,
28
28
  ORG_HIERARCHY_LEVELS
29
29
  } from "../chunk-HLMIR5UV.js";
30
- import "../chunk-NTFR5ZIF.js";
30
+ import "../chunk-PLCWXXUE.js";
31
31
  import "../chunk-JT3XLKKD.js";
32
32
  import "../chunk-R4NOLCSI.js";
33
33
  export {
@@ -1,5 +1,5 @@
1
- import { S as SharedSidebarConfig } from '../HealthFooter-BnDhAj0x.js';
2
- export { C as CrossServiceNav, d as CrossServiceNavProps, D as DashboardLayout, a as DashboardLayoutEnterprise, b as DashboardLayoutProps, c as DashboardLayoutUser, H as HealthFooter, e as HealthFooterEnterprise, f as HealthFooterProps, g as HealthFooterUser, M as MenuItem, h as MenuSection, i as SharedSidebarProps, j as getInitials, k as isAdminRole, l as isMenuItemActive, u as useSidebarResize } from '../HealthFooter-BnDhAj0x.js';
1
+ import { S as SharedSidebarConfig } from '../HealthFooter-C5K9s38i.js';
2
+ export { C as CrossServiceNav, d as CrossServiceNavProps, D as DashboardLayout, a as DashboardLayoutEnterprise, b as DashboardLayoutProps, c as DashboardLayoutUser, H as HealthFooter, e as HealthFooterEnterprise, f as HealthFooterProps, g as HealthFooterUser, M as MenuItem, h as MenuSection, i as SharedSidebarProps, j as getInitials, k as isAdminRole, l as isMenuItemActive, u as useSidebarResize } from '../HealthFooter-C5K9s38i.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
  import '../crossNav-Bz0RXU_F.js';
@@ -19,13 +19,13 @@ import {
19
19
  policyDeploymentConfig,
20
20
  sqdcpConfig,
21
21
  useSidebarResize
22
- } from "../chunk-XP2Y7YV6.js";
22
+ } from "../chunk-KXUNOSMZ.js";
23
23
  import "../chunk-4QJMLQSH.js";
24
- import "../chunk-R7B4WRSL.js";
24
+ import "../chunk-WTR6SNOE.js";
25
25
  import "../chunk-IEBZGU6X.js";
26
26
  import "../chunk-3G43UG63.js";
27
27
  import "../chunk-HLMIR5UV.js";
28
- import "../chunk-NTFR5ZIF.js";
28
+ import "../chunk-PLCWXXUE.js";
29
29
  import "../chunk-JT3XLKKD.js";
30
30
  import "../chunk-R4NOLCSI.js";
31
31
  export {
@@ -269,7 +269,7 @@ import {
269
269
  useFormField,
270
270
  useIsMobile,
271
271
  useSidebar
272
- } from "../chunk-NTFR5ZIF.js";
272
+ } from "../chunk-PLCWXXUE.js";
273
273
  import {
274
274
  Button,
275
275
  Dialog,
@@ -13,7 +13,7 @@ import {
13
13
  SelectTrigger,
14
14
  SelectValue,
15
15
  Textarea
16
- } from "../chunk-NTFR5ZIF.js";
16
+ } from "../chunk-PLCWXXUE.js";
17
17
  import {
18
18
  cn
19
19
  } from "../chunk-JT3XLKKD.js";
@@ -1,5 +1,5 @@
1
- import { D as DashboardLayout, a as DashboardLayoutEnterprise, b as DashboardLayoutProps, c as DashboardLayoutUser } from '../HealthFooter-BnDhAj0x.js';
2
- export { C as CrossServiceNav, d as CrossServiceNavProps, H as HealthFooter, e as HealthFooterEnterprise, f as HealthFooterProps, g as HealthFooterUser, M as MenuItem, h as MenuSection } from '../HealthFooter-BnDhAj0x.js';
1
+ import { D as DashboardLayout, a as DashboardLayoutEnterprise, b as DashboardLayoutProps, c as DashboardLayoutUser } from '../HealthFooter-C5K9s38i.js';
2
+ export { C as CrossServiceNav, d as CrossServiceNavProps, H as HealthFooter, e as HealthFooterEnterprise, f as HealthFooterProps, g as HealthFooterUser, M as MenuItem, h as MenuSection } from '../HealthFooter-C5K9s38i.js';
3
3
  export { C as CrossServiceLink, b as buildCrossServiceLinks } from '../crossNav-Bz0RXU_F.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -76,7 +76,7 @@ type ServiceShellProps = DashboardLayoutProps;
76
76
  */
77
77
  type ServiceShellUser = DashboardLayoutUser;
78
78
  /**
79
- * Currently-scoped enterprise — drives the header enterprise badge.
79
+ * Currently-scoped enterprise — passed to the user menu's diagnostic label.
80
80
  */
81
81
  type ServiceShellEnterprise = DashboardLayoutEnterprise;
82
82
 
@@ -5,13 +5,13 @@ import {
5
5
  CrossServiceNav,
6
6
  DashboardLayout,
7
7
  HealthFooter
8
- } from "../chunk-XP2Y7YV6.js";
8
+ } from "../chunk-KXUNOSMZ.js";
9
9
  import "../chunk-4QJMLQSH.js";
10
- import "../chunk-R7B4WRSL.js";
10
+ import "../chunk-WTR6SNOE.js";
11
11
  import "../chunk-IEBZGU6X.js";
12
12
  import "../chunk-3G43UG63.js";
13
13
  import "../chunk-HLMIR5UV.js";
14
- import "../chunk-NTFR5ZIF.js";
14
+ import "../chunk-PLCWXXUE.js";
15
15
  import "../chunk-JT3XLKKD.js";
16
16
  import "../chunk-R4NOLCSI.js";
17
17
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shell/index.ts"],"sourcesContent":["/**\n * @pablo2410/shared-ui/shell — Oplytics Service Shell\n *\n * The single composed chrome (sidebar + header + breadcrumb + reporting +\n * footer + user menu) used by every Oplytics subdomain. Subdomains become\n * a ~50-line adapter that supplies *data and identity*, nothing visual.\n * One PR to shared-ui + a coordinated version bump propagates a chrome\n * change to every service.\n *\n * Composition: re-exports the existing `DashboardLayout` from\n * `@pablo2410/shared-ui/layout` under the clearer canonical name\n * `OplyticsServiceShell`. The two are the same component; consumers\n * should prefer `/shell` going forward — `/layout` will be marked\n * `@deprecated` once every subdomain has migrated and removed in\n * shared-ui v1.0 (see oplytics-subdomains tracking epic).\n *\n * CSS: ship `dist/shell/oplytics-shell.css` containing every Tailwind v4\n * utility this shell uses (built by `pnpm build:shell-css`). Consumers\n * `@import` it once in their own `index.css` and never need an\n * `@source` directive.\n *\n * ```css\n * @import \"tailwindcss\";\n * @import \"@pablo2410/shared-ui/theme/oplytics-theme.css\";\n * @import \"@pablo2410/shared-ui/shell/oplytics-shell.css\";\n * ```\n *\n * Usage:\n *\n * ```tsx\n * import { OplyticsServiceShell } from \"@pablo2410/shared-ui/shell\";\n *\n * <OplyticsServiceShell\n * serviceName=\"Connect\"\n * serviceIcon={<Zap />}\n * menuSections={menuSections}\n * adminSections={adminSections}\n * isAdmin={user?.role === \"platform_admin\"}\n * activePath={location}\n * onNavigate={setLocation}\n * user={user}\n * onLogout={logout}\n * enterprise={selection.enterprise}\n * hierarchyNavigator={<HierarchyNavigator hierarchy={hierarchy} />}\n * reportingToolbar={<ReportingToolbar … />}\n * >\n * <Routes />\n * </OplyticsServiceShell>\n * ```\n */\n\nimport {\n DashboardLayout,\n type DashboardLayoutProps,\n type DashboardLayoutUser,\n type DashboardLayoutEnterprise,\n type MenuItem,\n type MenuSection,\n HealthFooter,\n type HealthFooterProps,\n type HealthFooterUser,\n type HealthFooterEnterprise,\n CrossServiceNav,\n type CrossServiceNavProps,\n} from \"../layout\";\nimport {\n buildCrossServiceLinks,\n type CrossServiceLink,\n} from \"../services/crossNav\";\n\n/**\n * The canonical composed Oplytics chrome.\n *\n * This is the same React component as `DashboardLayout` in\n * `@pablo2410/shared-ui/layout`, re-exported under a clearer name.\n * Consumers should prefer `OplyticsServiceShell` going forward.\n */\nconst OplyticsServiceShell = DashboardLayout;\n\n/**\n * Props accepted by `OplyticsServiceShell`.\n * (Alias of `DashboardLayoutProps`.)\n */\ntype ServiceShellProps = DashboardLayoutProps;\n\n/**\n * Authenticated user passed to the shell. Small enough to fit both\n * stateless-JWT subdomains (Connect, Policy Deployment) and DB-backed\n * ones (OEE Manager).\n */\ntype ServiceShellUser = DashboardLayoutUser;\n\n/**\n * Currently-scoped enterprise — drives the header enterprise badge.\n */\ntype ServiceShellEnterprise = DashboardLayoutEnterprise;\n\nexport {\n OplyticsServiceShell,\n type ServiceShellProps,\n type ServiceShellUser,\n type ServiceShellEnterprise,\n type MenuItem,\n type MenuSection,\n HealthFooter,\n type HealthFooterProps,\n type HealthFooterUser,\n type HealthFooterEnterprise,\n CrossServiceNav,\n type CrossServiceNavProps,\n buildCrossServiceLinks,\n type CrossServiceLink,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA6EA,IAAM,uBAAuB;","names":[]}
1
+ {"version":3,"sources":["../../src/shell/index.ts"],"sourcesContent":["/**\n * @pablo2410/shared-ui/shell — Oplytics Service Shell\n *\n * The single composed chrome (sidebar + header + breadcrumb + reporting +\n * footer + user menu) used by every Oplytics subdomain. Subdomains become\n * a ~50-line adapter that supplies *data and identity*, nothing visual.\n * One PR to shared-ui + a coordinated version bump propagates a chrome\n * change to every service.\n *\n * Composition: re-exports the existing `DashboardLayout` from\n * `@pablo2410/shared-ui/layout` under the clearer canonical name\n * `OplyticsServiceShell`. The two are the same component; consumers\n * should prefer `/shell` going forward — `/layout` will be marked\n * `@deprecated` once every subdomain has migrated and removed in\n * shared-ui v1.0 (see oplytics-subdomains tracking epic).\n *\n * CSS: ship `dist/shell/oplytics-shell.css` containing every Tailwind v4\n * utility this shell uses (built by `pnpm build:shell-css`). Consumers\n * `@import` it once in their own `index.css` and never need an\n * `@source` directive.\n *\n * ```css\n * @import \"tailwindcss\";\n * @import \"@pablo2410/shared-ui/theme/oplytics-theme.css\";\n * @import \"@pablo2410/shared-ui/shell/oplytics-shell.css\";\n * ```\n *\n * Usage:\n *\n * ```tsx\n * import { OplyticsServiceShell } from \"@pablo2410/shared-ui/shell\";\n *\n * <OplyticsServiceShell\n * serviceName=\"Connect\"\n * serviceIcon={<Zap />}\n * menuSections={menuSections}\n * adminSections={adminSections}\n * isAdmin={user?.role === \"platform_admin\"}\n * activePath={location}\n * onNavigate={setLocation}\n * user={user}\n * onLogout={logout}\n * enterprise={selection.enterprise}\n * hierarchyNavigator={<HierarchyNavigator hierarchy={hierarchy} />}\n * reportingToolbar={<ReportingToolbar … />}\n * >\n * <Routes />\n * </OplyticsServiceShell>\n * ```\n */\n\nimport {\n DashboardLayout,\n type DashboardLayoutProps,\n type DashboardLayoutUser,\n type DashboardLayoutEnterprise,\n type MenuItem,\n type MenuSection,\n HealthFooter,\n type HealthFooterProps,\n type HealthFooterUser,\n type HealthFooterEnterprise,\n CrossServiceNav,\n type CrossServiceNavProps,\n} from \"../layout\";\nimport {\n buildCrossServiceLinks,\n type CrossServiceLink,\n} from \"../services/crossNav\";\n\n/**\n * The canonical composed Oplytics chrome.\n *\n * This is the same React component as `DashboardLayout` in\n * `@pablo2410/shared-ui/layout`, re-exported under a clearer name.\n * Consumers should prefer `OplyticsServiceShell` going forward.\n */\nconst OplyticsServiceShell = DashboardLayout;\n\n/**\n * Props accepted by `OplyticsServiceShell`.\n * (Alias of `DashboardLayoutProps`.)\n */\ntype ServiceShellProps = DashboardLayoutProps;\n\n/**\n * Authenticated user passed to the shell. Small enough to fit both\n * stateless-JWT subdomains (Connect, Policy Deployment) and DB-backed\n * ones (OEE Manager).\n */\ntype ServiceShellUser = DashboardLayoutUser;\n\n/**\n * Currently-scoped enterprise — passed to the user menu's diagnostic label.\n */\ntype ServiceShellEnterprise = DashboardLayoutEnterprise;\n\nexport {\n OplyticsServiceShell,\n type ServiceShellProps,\n type ServiceShellUser,\n type ServiceShellEnterprise,\n type MenuItem,\n type MenuSection,\n HealthFooter,\n type HealthFooterProps,\n type HealthFooterUser,\n type HealthFooterEnterprise,\n CrossServiceNav,\n type CrossServiceNavProps,\n buildCrossServiceLinks,\n type CrossServiceLink,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA6EA,IAAM,uBAAuB;","names":[]}