@cosmicdrift/kumiko-renderer 0.405.0 → 0.409.0
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/app/action-form-body.js +23 -8
- package/dist/app/action-form-support.d.ts +7 -0
- package/dist/app/action-form-support.js +14 -1
- package/dist/app/config-edit-action-row.d.ts +7 -0
- package/dist/app/config-edit-action-row.js +45 -0
- package/dist/app/config-edit-body.js +32 -4
- package/dist/app/entity-list-screen.js +8 -11
- package/dist/app/nav.js +2 -1
- package/dist/app/projection-detail-body.js +3 -1
- package/dist/app/projection-detail-header.d.ts +1 -0
- package/dist/app/projection-detail-header.js +1 -1
- package/dist/app/projection-detail-navigation.d.ts +2 -1
- package/dist/app/projection-detail-navigation.js +6 -3
- package/dist/app/projection-detail-shim.js +3 -1
- package/dist/app/projection-list-render-props.d.ts +1 -1
- package/dist/app/projection-list-render-props.js +4 -2
- package/dist/app/projection-list-render.js +1 -1
- package/dist/app/screen-access.js +4 -2
- package/dist/app/screen-shared.d.ts +3 -2
- package/dist/app/screen-shared.js +29 -1
- package/dist/app/use-embedded-screen.d.ts +2 -0
- package/dist/app/use-embedded-screen.js +7 -1
- package/dist/components/edit-mounts.d.ts +3 -1
- package/dist/components/edit-mounts.js +3 -3
- package/dist/components/related-list-section.d.ts +3 -1
- package/dist/components/related-list-section.js +2 -2
- package/dist/components/render-edit-field-grid.d.ts +2 -2
- package/dist/components/render-edit-field-grid.js +12 -4
- package/dist/components/render-edit-fields-section.js +6 -7
- package/dist/components/render-edit-helpers.d.ts +4 -0
- package/dist/components/render-edit-helpers.js +5 -0
- package/dist/components/render-edit-section-kinds.js +6 -4
- package/dist/components/render-edit-submit.js +18 -1
- package/dist/components/render-edit-titles.js +6 -6
- package/dist/components/render-edit-types.d.ts +6 -0
- package/dist/components/render-field-control.d.ts +2 -0
- package/dist/components/render-field-control.js +23 -1
- package/dist/components/render-field-write-only.d.ts +1 -1
- package/dist/components/render-field-write-only.js +12 -2
- package/dist/components/render-field.js +2 -1
- package/dist/components/use-render-edit-sections.js +4 -4
- package/dist/format-when.d.ts +1 -1
- package/dist/format-when.js +2 -2
- package/dist/headless/format/escape.js +3 -2
- package/dist/headless/view-model/edit.js +0 -2
- package/dist/headless/view-model/types.d.ts +0 -3
- package/dist/i18n-defaults.js +38 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/primitives.d.ts +30 -7
- package/dist/primitives.js +1 -51
- package/dist/status-tone.d.ts +6 -0
- package/dist/status-tone.js +51 -0
- package/dist/toggle-set-member.d.ts +1 -0
- package/dist/toggle-set-member.js +8 -0
- package/dist/web/app/dashboard-header.js +5 -1
- package/dist/web/app/dashboard-screen-tiles.js +19 -3
- package/dist/web/icons.d.ts +2 -0
- package/dist/web/icons.js +3 -1
- package/dist/web/index.d.ts +3 -2
- package/dist/web/index.js +2 -1
- package/dist/web/layout/default-app-shell.d.ts +4 -1
- package/dist/web/layout/default-app-shell.js +5 -2
- package/dist/web/layout/focus-aware-sidebar.d.ts +27 -0
- package/dist/web/layout/focus-aware-sidebar.js +23 -0
- package/dist/web/layout/focus-rail.d.ts +16 -0
- package/dist/web/layout/focus-rail.js +61 -0
- package/dist/web/layout/nav-tree.d.ts +2 -1
- package/dist/web/layout/nav-tree.js +3 -9
- package/dist/web/layout/shell-focus.d.ts +19 -0
- package/dist/web/layout/shell-focus.js +35 -0
- package/dist/web/layout/shell-header.d.ts +1 -1
- package/dist/web/layout/shell-header.js +12 -9
- package/dist/web/layout/sidebar-brand.js +1 -1
- package/dist/web/layout/workspace-shell.d.ts +4 -1
- package/dist/web/layout/workspace-shell.js +5 -2
- package/dist/web/primitives/banner.js +3 -1
- package/dist/web/primitives/data-table/toolbar.js +2 -2
- package/dist/web/primitives/default-form.js +12 -5
- package/dist/web/primitives/field.js +4 -1
- package/dist/web/primitives/input-text-kinds.js +8 -2
- package/dist/web/primitives/layout-elements.js +2 -4
- package/dist/web/primitives/tabs.d.ts +1 -1
- package/dist/web/primitives/tabs.js +21 -4
- package/dist/web/theme-plugin.d.ts +1 -1
- package/dist/web/theme-plugin.js +7 -0
- package/dist/web/ui/sidebar.js +5 -2
- package/dist/web/widgets/ai-text-end-action.d.ts +12 -0
- package/dist/web/widgets/ai-text-end-action.js +15 -0
- package/dist/web/widgets/ai-text-field.d.ts +3 -0
- package/dist/web/widgets/ai-text-field.js +4 -3
- package/dist/web/widgets/attachment-card.d.ts +6 -0
- package/dist/web/widgets/attachment-card.js +11 -0
- package/dist/web/widgets/attachment-chip.d.ts +8 -0
- package/dist/web/widgets/attachment-chip.js +21 -0
- package/dist/web/widgets/clamped-text.d.ts +11 -0
- package/dist/web/widgets/clamped-text.js +38 -0
- package/dist/web/widgets/html-mail-frame.d.ts +17 -0
- package/dist/web/widgets/html-mail-frame.js +56 -0
- package/dist/web/widgets/index.d.ts +10 -1
- package/dist/web/widgets/index.js +9 -1
- package/dist/web/widgets/infinity-list.d.ts +3 -1
- package/dist/web/widgets/infinity-list.js +2 -2
- package/dist/web/widgets/message-body-view.d.ts +10 -0
- package/dist/web/widgets/message-body-view.js +36 -0
- package/dist/web/widgets/message-reader.d.ts +4 -0
- package/dist/web/widgets/message-reader.js +31 -0
- package/dist/web/widgets/message-thread.d.ts +5 -0
- package/dist/web/widgets/message-thread.js +66 -0
- package/dist/web/widgets/message-types.d.ts +68 -0
- package/dist/web/widgets/message-types.js +1 -0
- package/dist/web/widgets/mobile-top-bar.d.ts +21 -0
- package/dist/web/widgets/mobile-top-bar.js +8 -0
- package/dist/web/widgets/pdf-document.d.ts +19 -0
- package/dist/web/widgets/pdf-document.js +70 -0
- package/dist/web/widgets/pdf-page.d.ts +35 -0
- package/dist/web/widgets/pdf-page.js +155 -0
- package/dist/web/widgets/pdf-preview.d.ts +27 -7
- package/dist/web/widgets/pdf-preview.js +21 -133
- package/dist/web/widgets/pdf-search.d.ts +43 -0
- package/dist/web/widgets/pdf-search.js +178 -0
- package/dist/web/widgets/pdf-thumbnails.d.ts +10 -0
- package/dist/web/widgets/pdf-thumbnails.js +35 -0
- package/dist/web/widgets/pdf-viewer-toolbar.d.ts +22 -0
- package/dist/web/widgets/pdf-viewer-toolbar.js +35 -0
- package/dist/web/widgets/pdf-viewer.d.ts +21 -0
- package/dist/web/widgets/pdf-viewer.js +176 -0
- package/dist/web/widgets/quoted-text.d.ts +16 -0
- package/dist/web/widgets/quoted-text.js +76 -0
- package/dist/web/widgets/status-badge.js +3 -1
- package/dist/web/widgets/step-list-fit.d.ts +25 -0
- package/dist/web/widgets/step-list-fit.js +79 -0
- package/dist/web/widgets/step-list-row.d.ts +50 -0
- package/dist/web/widgets/step-list-row.js +97 -0
- package/dist/web/widgets/step-list.d.ts +33 -0
- package/dist/web/widgets/step-list.js +36 -0
- package/dist/web/widgets/surfaces.d.ts +23 -0
- package/dist/web/widgets/surfaces.js +15 -0
- package/dist/web/widgets/use-in-view.d.ts +5 -0
- package/dist/web/widgets/use-in-view.js +18 -0
- package/package.json +5 -5
- package/src/changes.json +186 -0
- package/src/web/styles.css +22 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { usePrimitives, useTranslation } from "../../index.js";
|
|
4
|
+
import { cn } from "../lib/cn.js";
|
|
5
|
+
import { ProgressBar } from "./progress-bar.js";
|
|
6
|
+
import { StatusBadge } from "./status-badge.js";
|
|
7
|
+
import { useStepFold } from "./step-list-fit.js";
|
|
8
|
+
import { StepActionButton, StepRow } from "./step-list-row.js";
|
|
9
|
+
/** Ordered plan of steps with status icons, progress header and per-step actions. */
|
|
10
|
+
export function StepList({ title, subtitle, status, steps, footerActions, collapsedAfter, collapseWhen = "always", surface = "ai", fill = false, progress = "full", emptyContent, phoneCard = false, testId = "step-list", }) {
|
|
11
|
+
const t = useTranslation();
|
|
12
|
+
const { Button } = usePrimitives();
|
|
13
|
+
const [expanded, setExpanded] = useState(false);
|
|
14
|
+
const total = steps.filter((step) => step.status !== "rejected").length;
|
|
15
|
+
const done = steps.filter((step) => step.status === "done").length;
|
|
16
|
+
const fold = useStepFold({
|
|
17
|
+
stepIds: steps.map((step) => step.id),
|
|
18
|
+
collapsedAfter,
|
|
19
|
+
foldsOnOverflow: fill && collapseWhen === "overflow",
|
|
20
|
+
expanded,
|
|
21
|
+
});
|
|
22
|
+
const foldAfter = fold.foldAfter;
|
|
23
|
+
const hiddenCount = foldAfter !== undefined && !expanded ? Math.max(0, steps.length - foldAfter) : 0;
|
|
24
|
+
const visibleSteps = hiddenCount > 0 ? steps.slice(0, foldAfter) : steps;
|
|
25
|
+
const footer = footerActions ?? [];
|
|
26
|
+
const leadingFooter = footer.filter((action) => action.variant === "ghost");
|
|
27
|
+
const trailingFooter = footer.filter((action) => action.variant !== "ghost");
|
|
28
|
+
return (_jsxs("section", { "aria-label": title, "data-testid": testId, className: cn(
|
|
29
|
+
// Px on phones: an app may shrink its root font for desktop density, the phone reading size stays.
|
|
30
|
+
"flex min-h-0 flex-col text-sm max-md:text-[14px]", fill && "h-full", surface === "ai" && "bg-ai-surface", phoneCard && "max-md:rounded-md max-md:p-3"), children: [_jsx(StepListHeader, { title: title, subtitle: subtitle, status: status, progress: progress, done: done, total: total, phoneCard: phoneCard, testId: testId }), steps.length === 0 ? (emptyContent) : (_jsxs("ol", { ref: fold.listRef, className: cn("m-0 min-h-0 grow list-none overflow-y-auto p-0", phoneCard &&
|
|
31
|
+
"max-md:rounded-md max-md:border max-md:border-border max-md:bg-card max-md:[&>li:last-child]:border-b-0 max-md:[&>li]:px-3 max-md:[&>li]:py-2.5"), children: [visibleSteps.map((step) => (_jsx(StepRow, { step: step, phoneCard: phoneCard }, step.id))), hiddenCount > 0 && (_jsx("li", { className: "px-4 py-3", children: _jsx(Button, { variant: "link", size: "sm", className: "text-[13px] font-normal text-foreground-secondary hover:text-foreground", onClick: () => setExpanded(true), testId: `${testId}-more`, children: t("kumiko.widget.step-list.moreSteps", { count: hiddenCount }) }) }))] })), footer.length > 0 && (_jsxs("div", { className: "flex shrink-0 items-center gap-2 border-t border-border px-4 py-2.5", children: [leadingFooter.map((action) => (_jsx(StepActionButton, { action: action }, action.id))), _jsx("div", { className: "grow" }), trailingFooter.map((action) => (_jsx(StepActionButton, { action: action }, action.id)))] }))] }));
|
|
32
|
+
}
|
|
33
|
+
function StepListHeader({ title, subtitle, status, progress, done, total, phoneCard, testId, }) {
|
|
34
|
+
const t = useTranslation();
|
|
35
|
+
return (_jsxs("div", { className: cn("flex shrink-0 flex-col gap-2 border-b border-border px-4 pb-3 pt-3.5", phoneCard && "max-md:border-b-0 max-md:px-0 max-md:pb-1.5 max-md:pt-0"), children: [_jsxs("div", { className: "flex items-baseline gap-2", children: [_jsx("h3", { className: "m-0 grow text-[15px] font-semibold", children: title }), status !== undefined && (_jsx(StatusBadge, { tone: status.tone, testId: `${testId}-status`, children: status.label })), progress !== "none" && (_jsx("span", { className: "text-[13px] text-muted-foreground", "data-testid": `${testId}-progress`, children: t("kumiko.widget.step-list.progress", { done, total }) }))] }), subtitle !== undefined && (_jsx("p", { className: "m-0 text-[13px] text-foreground-secondary", "data-testid": `${testId}-subtitle`, children: subtitle })), progress === "full" && (_jsx("div", { className: cn(phoneCard && "max-md:hidden"), children: _jsx(ProgressBar, { size: "thin", value: total === 0 ? 0 : done / total, ariaLabel: t("kumiko.widget.step-list.progressLabel") }) }))] }));
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare const SENDER_FRAME_CLASS = "rounded-md border border-sender-frame-border bg-sender-frame";
|
|
3
|
+
/** The white sheet alone, for a frame that holds several sheets (PDF pages, thumbnails). */
|
|
4
|
+
export declare function SenderSheet({ children, testId, compact, }: {
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
readonly testId?: string;
|
|
7
|
+
/** Narrow padding for a phone-width column, where px-6 would eat a third of each line. */
|
|
8
|
+
readonly compact?: boolean;
|
|
9
|
+
}): ReactNode;
|
|
10
|
+
/** Sand frame with one white sheet inside, for content that mimics a letter or mail. */
|
|
11
|
+
export declare function SenderFrame({ children, label, testId, }: {
|
|
12
|
+
readonly children: ReactNode;
|
|
13
|
+
readonly label?: string;
|
|
14
|
+
readonly testId?: string;
|
|
15
|
+
}): ReactNode;
|
|
16
|
+
/** Light blue area that marks content as AI-generated. */
|
|
17
|
+
export declare function AiSurface({ children, title, label, testId, as: Element, }: {
|
|
18
|
+
readonly children: ReactNode;
|
|
19
|
+
readonly title?: string;
|
|
20
|
+
readonly label?: string;
|
|
21
|
+
readonly testId?: string;
|
|
22
|
+
readonly as?: "section" | "aside" | "div";
|
|
23
|
+
}): ReactNode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/cn.js";
|
|
3
|
+
export const SENDER_FRAME_CLASS = "rounded-md border border-sender-frame-border bg-sender-frame";
|
|
4
|
+
/** The white sheet alone, for a frame that holds several sheets (PDF pages, thumbnails). */
|
|
5
|
+
export function SenderSheet({ children, testId, compact = false, }) {
|
|
6
|
+
return (_jsx("div", { "data-testid": testId, className: cn("rounded-sheet bg-sender-sheet text-foreground shadow-sheet", compact ? "p-3.5" : "px-6 py-5"), children: children }));
|
|
7
|
+
}
|
|
8
|
+
/** Sand frame with one white sheet inside, for content that mimics a letter or mail. */
|
|
9
|
+
export function SenderFrame({ children, label, testId, }) {
|
|
10
|
+
return (_jsx("section", { "aria-label": label, "data-testid": testId, className: `${SENDER_FRAME_CLASS} p-4`, children: _jsx(SenderSheet, { children: children }) }));
|
|
11
|
+
}
|
|
12
|
+
/** Light blue area that marks content as AI-generated. */
|
|
13
|
+
export function AiSurface({ children, title, label, testId, as: Element = "section", }) {
|
|
14
|
+
return (_jsxs(Element, { "aria-label": label, "data-testid": testId, className: "flex flex-col gap-2 rounded-md bg-ai-surface px-3.5 py-3", children: [title !== undefined && (_jsx("h3", { className: "m-0 text-xs font-semibold text-foreground-secondary", children: title })), children] }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** True once the element has come near the viewport; stays true afterwards. Without IntersectionObserver everything counts as visible. */
|
|
2
|
+
export declare function useSeenInViewport(rootMargin?: string): {
|
|
3
|
+
readonly seen: boolean;
|
|
4
|
+
readonly observe: (element: Element | null) => (() => void) | undefined;
|
|
5
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useCallback, useState } from "react";
|
|
2
|
+
/** True once the element has come near the viewport; stays true afterwards. Without IntersectionObserver everything counts as visible. */
|
|
3
|
+
export function useSeenInViewport(rootMargin = "300px 0px") {
|
|
4
|
+
const [seen, setSeen] = useState(typeof IntersectionObserver === "undefined");
|
|
5
|
+
const observe = useCallback((element) => {
|
|
6
|
+
if (element === null || typeof IntersectionObserver === "undefined")
|
|
7
|
+
return undefined;
|
|
8
|
+
const observer = new IntersectionObserver((entries) => {
|
|
9
|
+
if (entries.some((entry) => entry.isIntersecting)) {
|
|
10
|
+
setSeen(true);
|
|
11
|
+
observer.disconnect();
|
|
12
|
+
}
|
|
13
|
+
}, { rootMargin });
|
|
14
|
+
observer.observe(element);
|
|
15
|
+
return () => observer.disconnect();
|
|
16
|
+
}, [rootMargin]);
|
|
17
|
+
return { seen, observe };
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.409.0",
|
|
4
4
|
"description": "React renderer for Kumiko screens. The root export holds the platform-agnostic logic (primitives contract, hooks, KumikoScreen, navigation and SSE abstractions); ./headless the DOM-free UI logic, ./live the HTTP dispatcher, ./web the browser bindings (HTML primitives, history navigation, EventSource live events, createKumikoApp).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
52
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
51
|
+
"@cosmicdrift/kumiko-framework": "0.409.0",
|
|
52
|
+
"@cosmicdrift/kumiko-types": "0.409.0",
|
|
53
53
|
"@types/qrcode": "^1.5.6",
|
|
54
54
|
"class-variance-authority": "^0.7.1",
|
|
55
55
|
"clsx": "^2.1.1",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@cosmicdrift/kumiko-locale-de": "0.
|
|
83
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
82
|
+
"@cosmicdrift/kumiko-locale-de": "0.409.0",
|
|
83
|
+
"@cosmicdrift/kumiko-testing": "0.409.0",
|
|
84
84
|
"@tailwindcss/cli": "^4.3.3",
|
|
85
85
|
"@testing-library/react": "^16.3.3",
|
|
86
86
|
"@testing-library/user-event": "^14.6.8",
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,190 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.409.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "actionForm successItems, Banner variant hint",
|
|
6
|
+
"detail": "An actionForm can declare successItems { field, link? }. After a successful submit every entry of that payload array with a string label is shown as its own hint (Banner variant \"hint\", muted background) with the link on the right; the link resolves like a success link, but idFrom and params read from the entry. While at least one hint is shown it replaces the generic confirmation text. Boot rejects successItems together with redirect and an unknown link target; the role projection drops a link into a screen the role cannot reach and keeps the hints."
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"version": "0.409.0",
|
|
10
|
+
"type": "improvement",
|
|
11
|
+
"title": "Read-only email and phone text fields render as mailto and tel links",
|
|
12
|
+
"detail": "A read-only text field with `format: \"email\"` renders its value as a `mailto:` link and `format: \"phone\"` as a `tel:` link through the Link primitive. The `tel:` href keeps digits and a leading `+` only; empty values and phone values without a digit stay plain text. `isSafeHref` now also accepts `tel:`, which the Link primitive and the markdown renderer share."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"version": "0.409.0",
|
|
16
|
+
"type": "improvement",
|
|
17
|
+
"title": "configEdit actions: handler buttons between the form fields",
|
|
18
|
+
"detail": "`ConfigEditScreenDefinition.actions` takes `{ id, handler, label, description?, buttonLabel, afterField, successMessage? }`. The button renders as its own row directly after `afterField`, calls the write handler with `{}` and never saves the form; it is disabled with the hint `kumiko.configEdit.action.saveFirst` (de, en, es, fr, it) while the form has unsaved changes. Success and failure go through the action notifier, with a banner as fallback. The boot validator checks that the handler is a registered write handler, that `afterField` is a layout field and that ids are unique."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"version": "0.409.0",
|
|
22
|
+
"type": "improvement",
|
|
23
|
+
"title": "projectionDetail: formatted header subtitle parts and email/phone fields",
|
|
24
|
+
"detail": "A `header.subtitle` part `{ field, format }` formats the value with a `FormatSpec` before it is shown. A projectionDetail layout field `{ field, format: \"email\" | \"phone\" }` renders its read-only value as a `mailto:` or `tel:` link, like an entity text field with that format."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"version": "0.409.0",
|
|
28
|
+
"type": "improvement",
|
|
29
|
+
"title": "actionForm summary box on screen forms; detail subtitle and notes use the active locale",
|
|
30
|
+
"detail": "An actionForm screen with `summary` now renders the context box under the title also when it is a full screen, not only in a drawer. Header subtitle parts with a `format` and the notes section format dates with the active locale (`formatWhen(value, locale?)`; without a locale the old default stays)."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"version": "0.409.0",
|
|
34
|
+
"type": "improvement",
|
|
35
|
+
"title": "\"On this page\" navigation lists related-list and extension sections",
|
|
36
|
+
"detail": "The section navigation next to a screen form (entityEdit, projectionDetail) now also lists titled `relatedList` and `extension` sections, not only field sections, and scrolls to them. A section whose title equals the screen title is still left out."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"version": "0.409.0",
|
|
40
|
+
"type": "improvement",
|
|
41
|
+
"title": "Stored write-only secrets show a masked \"set\" row with Replace",
|
|
42
|
+
"detail": "A write-only field whose value is set (secrets, `writeOnly` entity fields) now renders \"•••••••••• set\" and a Replace button instead of the empty input. Replace reveals the input (with Remove stored value and the keep-placeholder); after a save the masked row returns. New translation keys `kumiko.field.writeOnly.maskedSet` and `kumiko.field.writeOnly.replace` (de, en, es, fr, it)."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"version": "0.409.0",
|
|
46
|
+
"type": "improvement",
|
|
47
|
+
"title": "Saved secrets leave the form state; email and phone links are underlined; lists format times in the active locale",
|
|
48
|
+
"detail": "After a successful configEdit or secrets save, a typed write-only value is replaced by the \"set\" marker instead of staying as plaintext in the form state. Read-only email and phone values render as underlined links. The delivery time column and the document-designer overview, version list and overrides drawer format times with the active locale."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"version": "0.409.0",
|
|
52
|
+
"type": "improvement",
|
|
53
|
+
"title": "Focus rail with user menu and a \"More\" tile",
|
|
54
|
+
"detail": "A focused screen's icon rail now pins the shell's sidebarFooter (for example the sidebar UserMenu) to its bottom, so profile and logout stay reachable. WorkspaceShell and DefaultAppShell take focusRailNavQns, the top-level nav QNs the rail shows as tiles; the other entries sit behind a \"More\" tile that opens the full sidebar and is marked active when the current screen lives there. New nav icon keys \"warehouse\" and \"euro\". An HTML mail whose quote is folded drops the Gmail separator break and the last paragraph's bottom margin, so the quote toggle sits right under the signature."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"version": "0.409.0",
|
|
58
|
+
"type": "fix",
|
|
59
|
+
"title": "Screen forms with declared columns pack fields in flow again",
|
|
60
|
+
"detail": "Since the declared-columns change a screen form with columns >= 2 rendered as a real CSS grid, so narrow fields (date, select) sat in wide columns and the second column started mid-form. Flow layout is back for every form with flow set and ignores the declared column count, as before. The view-model field columnsDeclared is removed; select width sm:w-60 and full-width cells stay."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"version": "0.409.0",
|
|
64
|
+
"type": "fix",
|
|
65
|
+
"title": "Tab content sits 16px below the tab strip",
|
|
66
|
+
"detail": "projectionDetail with layout.mode tabs left about 10px between the tab strip and the tab content (the embedded list toolbar). The header region wrapper now tops that up to 16px in one place for every tab kind."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"version": "0.409.0",
|
|
70
|
+
"type": "improvement",
|
|
71
|
+
"title": "Chromeless screen panels in dashboards carry a section head",
|
|
72
|
+
"detail": "A dashboard panel kind screen with chromeless renders the embedded screen's title (panel label, else screen:<id>.title) and its translated description as a section head, separated from the previous panel by a divider and without extra indentation. The embedded form no longer renders its own title block, and its submit buttons sit left-aligned directly under the fields without a divider footer. The \"All fields are required\" hint needs at least two shown fields, a lone field keeps its own required mark. The \"As of\" stamp only shows when the dashboard has a panel that loads data (not only screen, text or custom panels). The account-security dashboard marks its panels chromeless, and the sessions screen my-sessions is now titled \"Signed-in devices\" with a description (de, en, es, fr, it)."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"version": "0.409.0",
|
|
76
|
+
"type": "improvement",
|
|
77
|
+
"title": "PdfViewer pagesOnly fits whole pages, ThreadMessage.teaser",
|
|
78
|
+
"detail": "PdfViewer with pagesOnly now scales each page to the scroller's content height as well as its width (shrink-only), so a search hit opened in a host shows the page whole. ThreadMessage gains an optional teaser: while a foldOlderTogether thread has the mail closed, the plain-text teaser is shown clamped to clampLines lines with the \"Read the whole mail\" button; a click shows the full body. On phones StepList text and step buttons are 14px, its status icons 20px, and StatusBadge 12px on a 20px pill, in px so an app with a smaller root font keeps the phone reading size."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"version": "0.409.0",
|
|
82
|
+
"type": "improvement",
|
|
83
|
+
"title": "Focused shell mode and inbox reader building blocks",
|
|
84
|
+
"detail": "useShellFocusMode() collapses DefaultAppShell and WorkspaceShell to a 56px icon rail and hides the header toggle, bell and header actions while a screen is mounted. Tabs take icon, detail and appearance \"plain\" (muted counts). StepList rows take sources and highlighted. The text Input primitive and AiTextField/AiTextArea take endAction, an icon button inside the right edge (e.g. a microphone), or with label a small primary text button (e.g. \"Antworten\"). StepList takes status (badge) and subtitle for the header. PdfPreview variant \"viewer\" takes matchIndex, onMatchesChange and hideSearchBar so a host can drive hit navigation from its own stepper. MobileTopBar is the phone-only (md:hidden) top bar for focused screens, with label, optional back chevron, status chip and actions, since the shell header is hidden there. StepList takes fill (full container height, footer pinned) and shows done steps with the ok token. progress \"count\" keeps only the \"x of y done\" count, \"none\" hides count and bar. MessageThread html bodies show a quiet \"HTML mail, shown sanitized. External images blocked.\" line with a link-style \"Load images\" action, hide blocked images instead of a broken frame, and render sanitized tables without outer borders and with thin row dividers. A rejected StepList step uses a neutral grey disc with the secondary text tone for its X icon. PdfViewer search marks only the matched characters in amber (stronger for the active match) and matches phrases across text-layer lines, ignoring whitespace. The focus rail uses 40px rounded-md tiles with muted sidebar icons, 4px spacing and a 32px rounded-md brand tile. PdfPreview/PdfViewer take fill (no 480px floor, the host layout sizes the pane). MessageThread takes showHeaders false to drop author, address and time above open messages."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"version": "0.409.0",
|
|
88
|
+
"type": "improvement",
|
|
89
|
+
"title": "StepList collapseWhen \"overflow\", hidden Field label without gap, thread row chevron, PdfViewer scroll padding",
|
|
90
|
+
"detail": "StepList gains collapseWhen (\"always\" by default, the old behaviour). With \"overflow\" a fill list with collapsedAfter shows every step while they fit its height and folds only when they do not, then shows as many steps as fit but at least collapsedAfter. A Field with hideLabel and no changed marker, appendix or status no longer renders an empty label row, so its control is not pushed down by the column gap and lines up with a button beside it. Collapsed earlier mails in MessageThread show a chevron, a hover background and a pointer cursor. PdfViewer keeps its padding above a page it jumps to (scroll-padding), so the page no longer touches the toolbar."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"version": "0.409.0",
|
|
94
|
+
"type": "improvement",
|
|
95
|
+
"title": "Inbox reader widgets (MessageThread, MessageReader, StepList, surfaces, PdfPreview viewer)",
|
|
96
|
+
"detail": "New web widgets MessageThread and MessageReader (older messages fold to one line, quoted text behind a toggle, HTML bodies in a sandboxed script-free iframe with external images blocked until the reader asks, attachment chips and tabs), StepList (progress header, status icons, per-step actions, collapsedAfter), and the surfaces SenderFrame, SenderSheet and AiSurface backed by new theme tokens sender-frame, sender-frame-border, sender-sheet, ai-surface, radius-sheet and shadow-sheet. PdfPreview gains variant \"viewer\" (thumbnail rail, page jump, zoom, search with highlighted hits), searchTerm, initialPage and onPageChange; both variants now render pages lazily as they scroll into view. New i18n keys kumiko.widget.pdf-preview.*, message-thread.*, message-reader.* and step-list.* ship in de, es, fr and it."
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"version": "0.409.0",
|
|
100
|
+
"type": "improvement",
|
|
101
|
+
"title": "InfinityList can end in content that scrolls with its rows",
|
|
102
|
+
"detail": "New prop endContent renders after the last loaded row, inside the list's scroll container, for example a \"not found what you were looking for?\" hint right under search hits. It is not shown while the list shows its empty state; put such a hint into emptyState as well if it should appear there."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"version": "0.409.0",
|
|
106
|
+
"type": "improvement",
|
|
107
|
+
"title": "Thread folds older mails for a phone, step waiting reason as text on a phone",
|
|
108
|
+
"detail": "`foldOlderTogether` on MessageThread shows one \"2 frühere Mails anzeigen\" toggle above the newest mail instead of a row per older message; a click lists them as rows. In such a folded thread the toggle under a clamped mail body reads \"Ganze Mail lesen\" (en \"Read the whole mail\"); every other thread keeps \"Mehr anzeigen\". There an html mail is cut to the same lines by height; html mails in other threads still show whole. A folded thread uses narrow phone padding (SenderSheet `compact`). In every html mail the first block no longer adds its top margin above the text. In a folded thread the last mail's attachments render as full-width `AttachmentCard`s below the thread frame instead of chips (`MessageAttachment.thumbnailUrl` is new). New widget `AttachmentCard` shows a thumbnail or kind icon, name, second line and a \"Original ansehen\" link or button. New theme tokens `search-hit`, `search-hit-active` and `source-mark` (`bg-search-hit`, `bg-search-hit-active`, `bg-source-mark`) color PDF search hits, the active hit and a host-marked source passage. Plain and filter tab strips use normal weight for inactive tabs. A StepList with `phoneCard` shows a locked step's \"Wartet auf\" reason as a plain 13px line below the md breakpoint and keeps the badge on desktop. A `StepTag` with `afterWaiting: true` (e.g. \"Gerade geändert\") renders after the waiting badge; other tags stay before it. The PDF text layer now applies pdf.js's per-span font size and horizontal fit itself, so search hits and source marks sit exactly on the word whatever the app's body font or root font size is. A hit or marked passage is drawn as one band per line (fused across table cells) instead of one chip per text span."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"version": "0.409.0",
|
|
112
|
+
"type": "fix",
|
|
113
|
+
"title": "Tab strips tighten their spacing in narrow containers",
|
|
114
|
+
"detail": "DefaultTabs is a size container now. Below a strip width of 32rem (512px) it uses px-2.5 and gap-2, so four counted tabs fit a 400px list pane. Strips 32rem and wider keep px-6 and gap-6, and a strip that grows after mount gets the wide spacing back. A strip that still overflows keeps the edge fade at the cut side."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"version": "0.409.0",
|
|
118
|
+
"type": "fix",
|
|
119
|
+
"title": "Compact page header puts the status under the title",
|
|
120
|
+
"detail": "At phone width the header status slot moves to its own small line below the page title instead of sharing the row with it, so the title no longer truncates while it fits alone. Secondary actions stay in the overflow menu as before."
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"version": "0.409.0",
|
|
124
|
+
"type": "fix",
|
|
125
|
+
"title": "PdfViewer shows the page top of a search hit",
|
|
126
|
+
"detail": "Stepping to a search hit used to center the hit, which left an empty frame above short pages. The viewer now brings the hit's page top into view and scrolls further only when the hit sits below the fold. The zoom label in the toolbar keeps \"100 %\" on one line at smaller root font sizes."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"version": "0.409.0",
|
|
130
|
+
"type": "improvement",
|
|
131
|
+
"title": "PdfPreview shows only the pages with pagesOnly",
|
|
132
|
+
"detail": "PdfPreview and PdfViewer take pagesOnly. The viewer then drops its thumbnail rail and toolbar and keeps the pages on the sand frame, for hosts that step through search hits with their own controls, such as a search result that opens a document on its hit. searchTerm and matchIndex work as with hideSearchBar."
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"version": "0.409.0",
|
|
136
|
+
"type": "improvement",
|
|
137
|
+
"title": "PdfPreview marks a source passage with markTerm and keeps its search usable",
|
|
138
|
+
"detail": "PdfPreview and PdfViewer take markTerm, for a passage such as the clause a step was read from. The viewer marks it on the page it opens on, keeps the page top in view instead of centering a search hit, and leaves its search toggle in the toolbar; a term typed into the search replaces the mark while it is set. The zoom and search buttons of the toolbar are now 28px bordered buttons. StatusBadge is 20px high instead of 22px, and a StepList tag that is too long for its column is cut with the full text as tooltip."
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"version": "0.409.0",
|
|
142
|
+
"type": "fix",
|
|
143
|
+
"title": "StatusBadge dot no longer squashes in a narrow badge",
|
|
144
|
+
"detail": "A long badge text inside a width-limited container shrank the leading dot to a thin line. The dot now keeps its size and only the text is cut."
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"version": "0.409.0",
|
|
148
|
+
"type": "improvement",
|
|
149
|
+
"title": "Step links can sit under the step text",
|
|
150
|
+
"detail": "`StepListItem.link.placement: \"below\"` renders the link as a link button under the step's description and meta, for an action that changes the step such as taking a rejection back; the default stays the trailing link to what the step made, now underlined. The header title takes the free width, so a status badge without progress sits at the right edge, and the subtitle uses the secondary text tone."
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"version": "0.409.0",
|
|
154
|
+
"type": "fix",
|
|
155
|
+
"title": "The \"more steps\" row of a collapsed StepList reads as a note",
|
|
156
|
+
"detail": "The row that reveals hidden steps is now 13px secondary text with 12px/16px padding and no bottom rule, like the inbox design. It still expands the list on click."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"version": "0.409.0",
|
|
160
|
+
"type": "improvement",
|
|
161
|
+
"title": "StepList phone card, quieter mobile top bar",
|
|
162
|
+
"detail": "`phoneCard` on StepList keeps the desktop panel and, below the md breakpoint, puts the header inside the rounded surface and the steps in a framed white box with tighter rows; the progress bar is left out there. MobileTopBar uses the card background instead of the page background, a 13px label and a 4px gap, like the phone reader design."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"version": "0.409.0",
|
|
166
|
+
"type": "fix",
|
|
167
|
+
"title": "Step sources and tags share one line",
|
|
168
|
+
"detail": "A step's source links (now underlined) and its tags, including \"Waiting for\", wrap together in one 13px row instead of two stacked rows. The StepList section sets the 14px body size, so step titles no longer inherit a larger host size."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"version": "0.409.0",
|
|
172
|
+
"type": "improvement",
|
|
173
|
+
"title": "successLinks take params read from the success payload",
|
|
174
|
+
"detail": "ActionFormSuccessLink gets params, a map from URL search param to success-payload field. `{ screen: \"cockpit\", params: { cmd: \"duplicateOfId\" } }` opens the cockpit with `?cmd=<duplicateOfId>`. The link stays hidden while a mapped field is not a string, like a link whose id field is missing."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"version": "0.409.0",
|
|
178
|
+
"type": "improvement",
|
|
179
|
+
"title": "Tabs have a filter appearance for the filter strip of a list pane",
|
|
180
|
+
"detail": "DefaultTabs takes appearance \"filter\" next to \"pill\" and \"plain\". It keeps the plain look (muted count, 40px strip) and insets the strip by 6px with no gap between tabs, so the first label lines up with a list pane's search field. \"plain\" now sits flush with its content with a 4px gap. Both pad each tab by 10px on either side and space icon, label and count by 6px; before, the count stood 12px after its label. \"pill\" is unchanged."
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"version": "0.408.0",
|
|
184
|
+
"type": "improvement",
|
|
185
|
+
"title": "toggleSetMember helper",
|
|
186
|
+
"detail": "toggleSetMember(set, value) from @cosmicdrift/kumiko-renderer returns a new Set with value removed if it was present and added if it was not. The input set is not changed, so it fits React state updaters for expanded or collapsed ids."
|
|
187
|
+
},
|
|
2
188
|
{
|
|
3
189
|
"version": "0.404.0",
|
|
4
190
|
"type": "fix",
|
package/src/web/styles.css
CHANGED
|
@@ -115,6 +115,8 @@
|
|
|
115
115
|
--radius-md: calc(var(--radius) - 2px);
|
|
116
116
|
--radius-lg: var(--radius);
|
|
117
117
|
--radius-xl: calc(var(--radius) + 4px);
|
|
118
|
+
--radius-sheet: 2px;
|
|
119
|
+
--shadow-sheet: 0 1px 3px rgba(26, 28, 30, 0.18);
|
|
118
120
|
|
|
119
121
|
/* Semantische Status-Farben (Widgets: StatusBadge, Charts, StatCard-Tones).
|
|
120
122
|
`status-X` ist die Textfarbe, `status-X-surface` die Fläche dahinter
|
|
@@ -134,6 +136,17 @@
|
|
|
134
136
|
--color-status-active: #7fb3c9;
|
|
135
137
|
--color-status-active-surface: #14303c;
|
|
136
138
|
|
|
139
|
+
/* Sender content sits in a sand frame on sheets, AI content on a blue surface; light values below. */
|
|
140
|
+
--color-sender-frame: #2a2926;
|
|
141
|
+
--color-sender-frame-border: #3a3935;
|
|
142
|
+
--color-sender-sheet: #1a1a19;
|
|
143
|
+
--color-ai-surface: #14262e;
|
|
144
|
+
|
|
145
|
+
/* Highlights on the PDF sheet, which stays white in both themes, so dark equals light. */
|
|
146
|
+
--color-search-hit: #fbe3a6;
|
|
147
|
+
--color-search-hit-active: #f5c04a;
|
|
148
|
+
--color-source-mark: #fbf0d9;
|
|
149
|
+
|
|
137
150
|
/* JSON-Syntax-Highlighting (JsonView). Eigene, gedämpfte Palette statt der
|
|
138
151
|
Status-Ampel — ein `false` oder eine Zahl ist kein Fehler-/Warn-Signal.
|
|
139
152
|
Dark-Werte; Light-Overrides unten. Kontrast gegen bg-muted geprüft (>=6:1
|
|
@@ -366,6 +379,15 @@
|
|
|
366
379
|
--color-status-active: #205265;
|
|
367
380
|
--color-status-active-surface: #e1edf2;
|
|
368
381
|
|
|
382
|
+
--color-sender-frame: #eceae4;
|
|
383
|
+
--color-sender-frame-border: #e2e0d9;
|
|
384
|
+
--color-sender-sheet: #ffffff;
|
|
385
|
+
--color-ai-surface: #f3f7f9;
|
|
386
|
+
|
|
387
|
+
--color-search-hit: #fbe3a6;
|
|
388
|
+
--color-search-hit-active: #f5c04a;
|
|
389
|
+
--color-source-mark: #fbf0d9;
|
|
390
|
+
|
|
369
391
|
/* JSON-Syntax-Highlighting Light — dunkler/gesättigter, Kontrast gegen
|
|
370
392
|
bg-muted geprüft (>=6:1). */
|
|
371
393
|
--color-syntax-key: hsl(210 20% 35%);
|