Release govoplan-tenancy v0.1.22: unify interface contracts and documentation
Module Package Release / publish-packages (push) Successful in 10s
Module Package Release / publish-packages (push) Successful in 10s
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@govoplan/tenancy-webui",
|
||||
"version": "0.1.21",
|
||||
"version": "0.1.22",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@govoplan/core-webui": "^0.1.18",
|
||||
"@govoplan/core-webui": "^0.1.45",
|
||||
"lucide-react": "^1.23.0",
|
||||
"react": ">=19.2.7 <20",
|
||||
"react-dom": ">=19.2.7 <20"
|
||||
|
||||
@@ -68,7 +68,7 @@ export default function TenantSettingsPanel({
|
||||
|
||||
}: {settings: ApiSettings;canWrite: boolean;canWritePolicy: boolean;onAuthRefresh: () => Promise<void>;}) {
|
||||
const { requestDiscard } = useUnsavedChanges();
|
||||
const { modules } = usePlatformModules();
|
||||
const modules = usePlatformModules();
|
||||
const navigationItems = configurableNavigationItemsForModules(modules);
|
||||
const [draft, setDraft] = useState<TenantSettingsItem>(fallback);
|
||||
const [savedDraft, setSavedDraft] = useState<TenantSettingsItem>(fallback);
|
||||
@@ -212,6 +212,7 @@ export default function TenantSettingsPanel({
|
||||
<Card title="Tenant navigation order">
|
||||
<NavigationPreferenceEditor
|
||||
items={navigationItems}
|
||||
productAreas={modules.flatMap((module) => module.productAreas ?? [])}
|
||||
value={draft.navigation}
|
||||
scope="tenant"
|
||||
disabled={!canWrite || busy}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { DescriptionItem, DescriptionList } from "@govoplan/core-webui";
|
||||
import { DescriptionItem, DescriptionList, FormGrid } from "@govoplan/core-webui";
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Pencil, Plus, Search, Trash2 } from "lucide-react";
|
||||
import type { FormGrid, ApiSettings, AuthInfo, TenantAdminItem } from "@govoplan/core-webui";
|
||||
import type { ApiSettings, AuthInfo, TenantAdminItem } from "@govoplan/core-webui";
|
||||
import {
|
||||
ActionBlockerHint,
|
||||
AdminIconButton,
|
||||
|
||||
Reference in New Issue
Block a user