@open-mercato/ui 0.5.1-develop.2802.9223828f7f → 0.5.1-develop.2855.9b058b7483
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/dist/backend/AppShell.js +5 -5
- package/dist/backend/AppShell.js.map +2 -2
- package/dist/backend/confirm-dialog/ConfirmDialog.js +1 -1
- package/dist/backend/confirm-dialog/ConfirmDialog.js.map +1 -1
- package/dist/backend/crud/CollapsibleGroup.js +64 -50
- package/dist/backend/crud/CollapsibleGroup.js.map +2 -2
- package/dist/backend/crud/CollapsibleZoneLayout.js +23 -3
- package/dist/backend/crud/CollapsibleZoneLayout.js.map +2 -2
- package/dist/backend/crud/useGroupCollapse.js +2 -2
- package/dist/backend/crud/useGroupCollapse.js.map +2 -2
- package/dist/backend/crud/usePersistedBooleanFlag.js +57 -16
- package/dist/backend/crud/usePersistedBooleanFlag.js.map +2 -2
- package/dist/backend/crud/useZoneCollapse.js +2 -2
- package/dist/backend/crud/useZoneCollapse.js.map +2 -2
- package/dist/backend/messages/SendObjectMessageDialog.js +34 -13
- package/dist/backend/messages/SendObjectMessageDialog.js.map +2 -2
- package/dist/backend/version-history/VersionHistoryAction.js +3 -3
- package/dist/backend/version-history/VersionHistoryAction.js.map +2 -2
- package/dist/portal/PortalShell.js +4 -3
- package/dist/portal/PortalShell.js.map +2 -2
- package/package.json +3 -3
- package/src/backend/AppShell.tsx +11 -5
- package/src/backend/__tests__/CollapsibleZoneLayout.test.tsx +60 -0
- package/src/backend/confirm-dialog/ConfirmDialog.tsx +1 -1
- package/src/backend/confirm-dialog/__tests__/ConfirmDialog.test.tsx +44 -0
- package/src/backend/crud/CollapsibleGroup.tsx +12 -2
- package/src/backend/crud/CollapsibleZoneLayout.tsx +29 -4
- package/src/backend/crud/__tests__/usePersistedBooleanFlag.test.ts +83 -7
- package/src/backend/crud/useGroupCollapse.ts +2 -2
- package/src/backend/crud/usePersistedBooleanFlag.ts +75 -21
- package/src/backend/crud/useZoneCollapse.ts +2 -2
- package/src/backend/messages/SendObjectMessageDialog.tsx +37 -7
- package/src/backend/messages/__tests__/SendObjectMessageDialog.test.tsx +21 -0
- package/src/backend/version-history/VersionHistoryAction.tsx +4 -4
- package/src/portal/PortalShell.tsx +11 -3
package/dist/backend/AppShell.js
CHANGED
|
@@ -258,7 +258,7 @@ function Chevron({ open }) {
|
|
|
258
258
|
function AppShell(props) {
|
|
259
259
|
return /* @__PURE__ */ jsx(QueryProvider, { children: /* @__PURE__ */ jsx(BackendChromeProvider, { adminNavApi: props.adminNavApi, children: /* @__PURE__ */ jsx(AppShellBody, { ...props }) }) });
|
|
260
260
|
}
|
|
261
|
-
function AppShellBody({ productName, email, groups, rightHeaderSlot, children, sidebarCollapsedDefault = false, currentTitle, breadcrumb, version, settingsSectionTitle, settingsPathPrefixes = [], settingsSections, profileSections, profileSectionTitle, profilePathPrefixes = [], mobileSidebarSlot }) {
|
|
261
|
+
function AppShellBody({ productName, logo, email, groups, rightHeaderSlot, children, sidebarCollapsedDefault = false, currentTitle, breadcrumb, version, settingsSectionTitle, settingsPathPrefixes = [], settingsSections, profileSections, profileSectionTitle, profilePathPrefixes = [], mobileSidebarSlot }) {
|
|
262
262
|
const pathname = usePathname();
|
|
263
263
|
const searchParams = useSearchParams();
|
|
264
264
|
const t = useT();
|
|
@@ -612,7 +612,7 @@ function AppShellBody({ productName, email, groups, rightHeaderSlot, children, s
|
|
|
612
612
|
const lastVisibleIndex = sortedSections.length - 1;
|
|
613
613
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col min-h-full gap-3", children: [
|
|
614
614
|
!hideHeader && /* @__PURE__ */ jsx("div", { className: `flex items-center ${compact ? "justify-center" : "justify-between"} mb-2`, children: /* @__PURE__ */ jsxs(Link, { href: "/backend", className: "flex items-center gap-2", "aria-label": t("appShell.goToDashboard"), children: [
|
|
615
|
-
/* @__PURE__ */ jsx(Image, { src: "/open-mercato.svg", alt: resolvedProductName, width: 32, height: 32, className: "rounded m-4" }),
|
|
615
|
+
/* @__PURE__ */ jsx(Image, { src: logo?.src ?? "/open-mercato.svg", alt: logo?.alt ?? resolvedProductName, width: 32, height: 32, className: "rounded m-4" }),
|
|
616
616
|
!compact && /* @__PURE__ */ jsx("div", { className: "text-m font-semibold", children: resolvedProductName })
|
|
617
617
|
] }) }),
|
|
618
618
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-3 overflow-y-auto pr-1", children: [
|
|
@@ -698,7 +698,7 @@ function AppShellBody({ productName, email, groups, rightHeaderSlot, children, s
|
|
|
698
698
|
if (!isChromeReady && isChromeLoading && resolvedGroups.length === 0) {
|
|
699
699
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col min-h-full gap-3", "data-testid": "backend-chrome-loading", children: [
|
|
700
700
|
!hideHeader ? /* @__PURE__ */ jsx("div", { className: `flex items-center ${compact ? "justify-center" : "justify-between"} mb-2`, children: /* @__PURE__ */ jsxs(Link, { href: "/backend", className: "flex items-center gap-2", "aria-label": t("appShell.goToDashboard"), children: [
|
|
701
|
-
/* @__PURE__ */ jsx(Image, { src: "/open-mercato.svg", alt: resolvedProductName, width: 32, height: 32, className: "rounded m-4" }),
|
|
701
|
+
/* @__PURE__ */ jsx(Image, { src: logo?.src ?? "/open-mercato.svg", alt: logo?.alt ?? resolvedProductName, width: 32, height: 32, className: "rounded m-4" }),
|
|
702
702
|
!compact && /* @__PURE__ */ jsx("div", { className: "text-m font-semibold", children: resolvedProductName })
|
|
703
703
|
] }) }) : null,
|
|
704
704
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-3 pr-1", children: [
|
|
@@ -923,7 +923,7 @@ function AppShellBody({ productName, email, groups, rightHeaderSlot, children, s
|
|
|
923
923
|
] }) : /* @__PURE__ */ jsx("div", { className: "rounded border border-dashed bg-muted/20 p-3 text-sm text-muted-foreground", children: t("appShell.sidebarCustomizationLoading") }) : null;
|
|
924
924
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col min-h-full gap-3", children: [
|
|
925
925
|
!hideHeader && /* @__PURE__ */ jsx("div", { className: `flex items-center ${compact ? "justify-center" : "justify-between"} mb-2`, children: /* @__PURE__ */ jsxs(Link, { href: "/backend", className: "flex items-center gap-2", "aria-label": t("appShell.goToDashboard"), children: [
|
|
926
|
-
/* @__PURE__ */ jsx(Image, { src: "/open-mercato.svg", alt: resolvedProductName, width: 32, height: 32, className: "rounded m-4" }),
|
|
926
|
+
/* @__PURE__ */ jsx(Image, { src: logo?.src ?? "/open-mercato.svg", alt: logo?.alt ?? resolvedProductName, width: 32, height: 32, className: "rounded m-4" }),
|
|
927
927
|
!compact && /* @__PURE__ */ jsx("div", { className: "text-m font-semibold", children: resolvedProductName })
|
|
928
928
|
] }) }),
|
|
929
929
|
shouldRenderSidebarInjectionSpots ? /* @__PURE__ */ jsx(
|
|
@@ -1249,7 +1249,7 @@ function AppShellBody({ productName, email, groups, rightHeaderSlot, children, s
|
|
|
1249
1249
|
/* @__PURE__ */ jsxs("aside", { className: "absolute left-0 top-0 flex h-full w-[260px] flex-col bg-background border-r overflow-hidden", children: [
|
|
1250
1250
|
/* @__PURE__ */ jsxs("div", { className: "shrink-0 p-3 pb-2 flex items-center justify-between border-b", children: [
|
|
1251
1251
|
/* @__PURE__ */ jsxs(Link, { href: "/backend", className: "flex items-center gap-2 text-sm font-semibold", onClick: () => setMobileOpen(false), "aria-label": t("appShell.goToDashboard"), children: [
|
|
1252
|
-
/* @__PURE__ */ jsx(Image, { src: "/open-mercato.svg", alt: resolvedProductName, width: 28, height: 28, className: "rounded" }),
|
|
1252
|
+
/* @__PURE__ */ jsx(Image, { src: logo?.src ?? "/open-mercato.svg", alt: logo?.alt ?? resolvedProductName, width: 28, height: 28, className: "rounded" }),
|
|
1253
1253
|
resolvedProductName
|
|
1254
1254
|
] }),
|
|
1255
1255
|
/* @__PURE__ */ jsx(IconButton, { variant: "outline", size: "sm", onClick: () => setMobileOpen(false), "aria-label": t("appShell.closeMenu"), children: "\u2715" })
|