@activecollab/components 2.0.491 → 2.0.493
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/cjs/components/Icons/collection/Printer.js +62 -0
- package/dist/cjs/components/Icons/collection/Printer.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +7 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/presentation/selfHostedRedesign/parts.js +1646 -0
- package/dist/cjs/presentation/selfHostedRedesign/parts.js.map +1 -0
- package/dist/cjs/presentation/shared/TaskOptionsMenu.js +5 -1
- package/dist/cjs/presentation/shared/TaskOptionsMenu.js.map +1 -1
- package/dist/cjs/presentation/shared/index.js +14 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/cjs/presentation/shared/selfHostedSettings.js +7 -2
- package/dist/cjs/presentation/shared/selfHostedSettings.js.map +1 -1
- package/dist/esm/components/Icons/collection/Printer.d.ts +32 -0
- package/dist/esm/components/Icons/collection/Printer.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Printer.js +55 -0
- package/dist/esm/components/Icons/collection/Printer.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +1 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/presentation/selfHostedRedesign/parts.d.ts +205 -0
- package/dist/esm/presentation/selfHostedRedesign/parts.d.ts.map +1 -0
- package/dist/esm/presentation/selfHostedRedesign/parts.js +1453 -0
- package/dist/esm/presentation/selfHostedRedesign/parts.js.map +1 -0
- package/dist/esm/presentation/shared/TaskOptionsMenu.d.ts.map +1 -1
- package/dist/esm/presentation/shared/TaskOptionsMenu.js +5 -1
- package/dist/esm/presentation/shared/TaskOptionsMenu.js.map +1 -1
- package/dist/esm/presentation/shared/index.d.ts +1 -1
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +1 -1
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/esm/presentation/shared/selfHostedSettings.d.ts +4 -0
- package/dist/esm/presentation/shared/selfHostedSettings.d.ts.map +1 -1
- package/dist/esm/presentation/shared/selfHostedSettings.js +4 -1
- package/dist/esm/presentation/shared/selfHostedSettings.js.map +1 -1
- package/dist/index.js +454 -402
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selfHostedSettings.js","names":["React","useState","styled","MONO","SM","Card","Dialog","Dot","CollapseExpandSingleIcon","Link","Trigger","Body2","Stack","div","withConfig","displayName","componentId","SelfHostedSettingsDialog","_ref","children","onClose","close","undefined","createElement","open","size","height","enableBackgroundClick","Title","ContentDivider","Content","STATUS_COLOR","ok","info","problem","StatusDot","_ref2","status","color","HeaderCard","_ref3","$clickable","_ref4","$expanded","LabelCol","_ref5","$wraps","Controls","Caret","span","_ref6","_ref7","$dimmed","SettingExpandCard","RowWrap","RowTrigger","ExpandableSettingRow","_ref8","label","right","_ref8$wraps","wraps","_ref8$expandable","expandable","_ref8$defaultExpanded","defaultExpanded","_useState","expanded","setExpanded","_extends","forwardedAs","disabled","onClick","prev","variant","CommandCode","code","CronField","CronJobsBody","_ref9","errors","hourly","frequently","imap","Fragment","length","join","map","_ref0","value","key","EmailLogLink","href","target","rel","event","stopPropagation","OtherSectionRows","_ref1","_cron$status","_oldVersions$status","oldVersions","cron","content"],"sources":["../../../../src/presentation/shared/selfHostedSettings.tsx"],"sourcesContent":["/**\n * Shared chrome for the Self-Hosted Settings presentation stories\n * (`Presentation/Self-Hosted Settings`).\n *\n * Mirrors the app:\n * - components/Settings/SelfHostedSettingsDialog.jsx — the `Dialog size=\"xxl\"\n * height=\"95%\"` titled \"Self-Hosted Settings\" and the flat-card surface\n * overrides (cards drop their shadow and take the body surface so they read\n * as flat tiles on the dialog paper).\n * - components/SelfHostedSettings/SelfHostedSettingsContent.jsx — the stack of\n * expandable status rows (Version, Email, Document search, Pusher, Cron,\n * Old Versions).\n * - components/Settings/SettingRow.jsx + components/ExpandToggle — the row card\n * (min-height 68px, pl-5 pr-4 py-3, paper-2) with a status `Dot` and a caret;\n * expanding drops a bordered card below the row (top border theme-400,\n * rounded-top-none, px-5 py-3).\n *\n * Structural colours are tokens. The status dot uses the two status tokens that\n * already exist in GlobalStyle (`--color-sucess-green` = #64cd93 and\n * `--red-alert` = #ed6161), which are the exact hexes the app hardcodes.\n */\nimport React, { ReactElement, ReactNode, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MONO, SM } from \"./tokens\";\nimport { Card } from \"../../components/Card\";\nimport { Dialog } from \"../../components/Dialog\";\nimport { Dot } from \"../../components/Dot\";\nimport { CollapseExpandSingleIcon } from \"../../components/Icons\";\nimport { Link } from \"../../components/Links\";\nimport { Trigger } from \"../../components/Trigger\";\nimport { Body2 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* The dialog */\n/* ------------------------------------------------------------------ */\n\n/**\n * The scroll body inside the dialog. Cards and the dialog share\n * `--page-paper-main`, so the rows would be invisible on the dialog paper; the\n * app remaps the descendants' paper surface to the body surface and kills the\n * card shadow, exactly like SelfHostedSettingsDialog's DIALOG_CONTENT. The rows\n * then read as flat tiles separated by their rounding and the 8px gaps.\n */\nconst Stack = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n\n --page-paper-main: var(--body-bg-main);\n --shadow-tertiary: none;\n --shadow-tertiary-hover: none;\n`;\n\nexport interface SelfHostedSettingsDialogProps {\n /** The rows (usually the section stack). */\n children: ReactNode;\n /** Optional close handler; defaults to a no-op for the mock. */\n onClose?: () => void;\n}\n\nexport const SelfHostedSettingsDialog = ({\n children,\n onClose,\n}: SelfHostedSettingsDialogProps): ReactElement => {\n const close = onClose ?? ((): void => undefined);\n\n return (\n <Dialog open size=\"xxl\" height=\"95%\" onClose={close} enableBackgroundClick>\n <Dialog.Title onClose={close}>Self-Hosted Settings</Dialog.Title>\n <Dialog.ContentDivider />\n <Dialog.Content>\n <Stack>{children}</Stack>\n </Dialog.Content>\n </Dialog>\n );\n};\n\n/* ------------------------------------------------------------------ */\n/* Status dot (mirrors the app `Dot color={ok ? green : red} size={12}`) */\n/* ------------------------------------------------------------------ */\n\n/**\n * ok = green, info = blue (something to act on that isn't an error, e.g. an\n * update is available), problem = red (errors only).\n */\nexport type SettingStatus = \"ok\" | \"info\" | \"problem\";\n\nconst STATUS_COLOR: Record<SettingStatus, string> = {\n ok: \"var(--color-sucess-green)\",\n info: \"var(--color-progress-blue)\",\n problem: \"var(--red-alert)\",\n};\n\nexport const StatusDot = ({\n status,\n}: {\n status: SettingStatus;\n}): ReactElement => <Dot color={STATUS_COLOR[status]} size={12} />;\n\n/* ------------------------------------------------------------------ */\n/* Expandable setting row */\n/* ------------------------------------------------------------------ */\n\n/** The clickable header card. Mirrors SettingRow.jsx's ROW_CLASS. */\nconst HeaderCard = styled(Card)<{ $expanded: boolean; $clickable: boolean }>`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n min-height: 68px;\n padding: 12px 16px 12px 20px;\n cursor: ${({ $clickable }) => ($clickable ? \"pointer\" : \"default\")};\n\n @media (min-width: ${SM}) {\n flex-direction: row;\n align-items: center;\n }\n\n ${({ $expanded }) =>\n $expanded\n ? `\n box-shadow: none;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n `\n : \"\"}\n`;\n\nconst LabelCol = styled.div<{ $wraps: boolean }>`\n display: flex;\n flex: 1 1 0%;\n min-width: 0;\n padding-right: 12px;\n ${({ $wraps }) =>\n $wraps\n ? \"\"\n : `\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n `}\n`;\n\nconst Controls = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n flex-shrink: 0;\n`;\n\nconst Caret = styled.span<{ $expanded: boolean; $dimmed: boolean }>`\n display: inline-flex;\n transition: transform 200ms ease;\n transform: rotate(${({ $expanded }) => ($expanded ? \"0deg\" : \"180deg\")});\n opacity: ${({ $dimmed }) => ($dimmed ? 0.5 : 1)};\n`;\n\n/** The card that drops below an expanded row. Mirrors the app expand `Card`. */\nexport const SettingExpandCard = styled(Card)`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-height: 48px;\n padding: 12px 20px;\n border-top: 1px solid var(--color-theme-400);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n box-shadow: none;\n`;\n\nconst RowWrap = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 8px;\n`;\n\n/** Full-width DS Trigger around the header, like the app's `tw-w-full`. */\nconst RowTrigger = styled(Trigger)`\n display: block;\n width: 100%;\n text-align: left;\n`;\n\nexport interface ExpandableSettingRowProps {\n /** Row label — a section name, or the version sentence. */\n label: ReactNode;\n /** Status dot on the right; omit for a row with no status (rare). */\n status?: SettingStatus;\n /** Extra control shown left of the dot, e.g. the Email Log button. */\n right?: ReactNode;\n /** Let the label wrap onto a second line (the version sentence does). */\n wraps?: boolean;\n /** Whether the row can expand. A latest-stable version row cannot. */\n expandable?: boolean;\n /** Start expanded (each story pins the state it wants to show). */\n defaultExpanded?: boolean;\n /** The expand content (rendered in a `SettingExpandCard`). */\n children?: ReactNode;\n}\n\nexport const ExpandableSettingRow = ({\n label,\n status,\n right,\n wraps = false,\n expandable = true,\n defaultExpanded = false,\n children,\n}: ExpandableSettingRowProps): ReactElement => {\n const [expanded, setExpanded] = useState(expandable && defaultExpanded);\n const open = expandable && expanded;\n\n return (\n <RowWrap>\n {/* A row with its own control (Email Log) renders the Trigger as a div,\n like the app's `as=\"div\"`, so the link isn't nested in a button.\n Trigger's props type omits `as`, hence the cast. */}\n <RowTrigger\n {...((right ? { forwardedAs: \"div\" } : {}) as object)}\n disabled={!expandable}\n onClick={(): void => setExpanded((prev) => !prev)}\n >\n <HeaderCard variant=\"paper-2\" $expanded={open} $clickable={expandable}>\n <LabelCol $wraps={wraps}>\n {typeof label === \"string\" ? <Body2>{label}</Body2> : label}\n </LabelCol>\n <Controls>\n {right}\n {status ? <StatusDot status={status} /> : null}\n <Caret $expanded={open} $dimmed={!expandable}>\n <CollapseExpandSingleIcon />\n </Caret>\n </Controls>\n </HeaderCard>\n </RowTrigger>\n {open ? (\n <SettingExpandCard variant=\"paper-2\">{children}</SettingExpandCard>\n ) : null}\n </RowWrap>\n );\n};\n\n/* ------------------------------------------------------------------ */\n/* Inline / block command (SSH + CLI fallback). Uses the shared MONO */\n/* face; mirrors the app <pre> on --color-primary-300. */\n/* ------------------------------------------------------------------ */\n\n// ds-exception: monospace command text uses the shared MONO constant (AGENTS\n// rule 4 — commands are code, not Typography prose).\nexport const CommandCode = styled.code`\n font-family: ${MONO};\n font-size: 13px;\n line-height: 20px;\n background-color: var(--color-primary-300);\n color: var(--color-theme-900);\n padding: 2px 6px;\n border-radius: var(--ac-br-4);\n white-space: pre-wrap;\n word-break: break-all;\n`;\n\n/* ------------------------------------------------------------------ */\n/* Cron jobs expand content (CronConfiguration.js: status + last runs) */\n/* ------------------------------------------------------------------ */\n\nconst CronField = styled.div`\n margin-bottom: 8px;\n`;\n\nexport interface CronJobsBodyProps {\n /** mirrors: GET /system-status `cron_errors`. */\n errors: string[];\n /** Formatted \"Executed …\" text per job, or null for \"Never executed\". */\n hourly: string | null;\n frequently: string | null;\n imap: string | null;\n}\n\nexport const CronJobsBody = ({\n errors,\n hourly,\n frequently,\n imap,\n}: CronJobsBodyProps): ReactElement => (\n <>\n <CronField>\n <Body2>Status:</Body2>\n <Body2 color={errors.length > 0 ? \"alert\" : \"tertiary\"}>\n {errors.length > 0\n ? errors.join(\",\\n\")\n : \"Configured and working properly\"}\n </Body2>\n </CronField>\n {(\n [\n [\"Hourly Job\", hourly],\n [\"Frequently Job\", frequently],\n [\"IMAP Job\", imap],\n ] as const\n ).map(([label, value]) => (\n <CronField key={label}>\n <Body2>{label}:</Body2>\n <Body2 color=\"tertiary\">\n {value ? `Executed ${value}` : \"Never executed\"}\n </Body2>\n </CronField>\n ))}\n </>\n);\n\n/* ------------------------------------------------------------------ */\n/* The five non-version section rows, healthy. Shared by the baseline */\n/* stack and every Phase B upgrade story so the chrome around the */\n/* Version row is defined once (AGENTS rule 6). */\n/* ------------------------------------------------------------------ */\n\n/** The Email Log button that sits on the \"Sending and receiving email\" row. */\nconst EmailLogLink = (): ReactElement => (\n <Link\n href=\"#\"\n target=\"_blank\"\n rel=\"noreferrer\"\n variant=\"outlined\"\n onClick={(event): void => event.stopPropagation()}\n >\n Email Log\n </Link>\n);\n\n/** A row's status + optional expand content (and whether it starts open). */\nexport interface SectionRowState {\n status: SettingStatus;\n content?: ReactNode;\n defaultExpanded?: boolean;\n}\n\nexport interface OtherSectionRowsProps {\n /**\n * Old Versions status + optional expand content. Defaults to a healthy,\n * collapsed row (the state every Phase B upgrade story assumes).\n */\n oldVersions?: SectionRowState;\n /** Cron jobs status + expand content; defaults to healthy and collapsed. */\n cron?: SectionRowState;\n}\n\nexport const OtherSectionRows = ({\n oldVersions,\n cron,\n}: OtherSectionRowsProps): ReactElement => (\n <>\n <ExpandableSettingRow\n label=\"Sending and receiving email\"\n status=\"ok\"\n right={<EmailLogLink />}\n />\n <ExpandableSettingRow label=\"Document search\" status=\"ok\" />\n <ExpandableSettingRow label=\"Pusher configuration\" status=\"ok\" />\n <ExpandableSettingRow\n label=\"Cron jobs\"\n status={cron?.status ?? \"ok\"}\n defaultExpanded={cron?.defaultExpanded}\n >\n {cron?.content}\n </ExpandableSettingRow>\n <ExpandableSettingRow\n label=\"Old Versions\"\n status={oldVersions?.status ?? \"ok\"}\n defaultExpanded={oldVersions?.defaultExpanded}\n >\n {oldVersions?.content}\n </ExpandableSettingRow>\n </>\n);\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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WAAW,oBAAXA,WAAW,CAAEpC;EAAgB,GAE7CoC,WAAW,oBAAXA,WAAW,CAAEE,OACM,CACtB,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"selfHostedSettings.js","names":["React","useState","styled","MONO","SM","Card","Dialog","Dot","CollapseExpandSingleIcon","Link","Trigger","Body2","Stack","div","withConfig","displayName","componentId","SelfHostedSettingsDialog","_ref","children","onClose","close","undefined","createElement","open","size","height","enableBackgroundClick","Title","ContentDivider","Content","STATUS_COLOR","ok","info","problem","StatusDot","_ref2","status","color","okStatus","HeaderCard","_ref3","$clickable","_ref4","$expanded","LabelCol","_ref5","$wraps","Controls","Caret","span","_ref6","_ref7","$dimmed","SettingExpandCard","RowWrap","RowTrigger","ExpandableSettingRow","_ref8","label","right","_ref8$wraps","wraps","_ref8$expandable","expandable","_ref8$defaultExpanded","defaultExpanded","_useState","expanded","setExpanded","_extends","forwardedAs","disabled","onClick","prev","variant","CommandCode","code","CronField","CronJobsBody","_ref9","errors","hourly","frequently","imap","Fragment","length","join","map","_ref0","value","key","EmailLogLink","href","target","rel","event","stopPropagation","OtherSectionRows","_ref1","_cron$status","_oldVersions$status","oldVersions","cron","content"],"sources":["../../../../src/presentation/shared/selfHostedSettings.tsx"],"sourcesContent":["/**\n * Shared chrome for the Self-Hosted Settings presentation stories\n * (`Presentation/Self-Hosted Settings`).\n *\n * Mirrors the app:\n * - components/Settings/SelfHostedSettingsDialog.jsx — the `Dialog size=\"xxl\"\n * height=\"95%\"` titled \"Self-Hosted Settings\" and the flat-card surface\n * overrides (cards drop their shadow and take the body surface so they read\n * as flat tiles on the dialog paper).\n * - components/SelfHostedSettings/SelfHostedSettingsContent.jsx — the stack of\n * expandable status rows (Version, Email, Document search, Pusher, Cron,\n * Old Versions).\n * - components/Settings/SettingRow.jsx + components/ExpandToggle — the row card\n * (min-height 68px, pl-5 pr-4 py-3, paper-2) with a status `Dot` and a caret;\n * expanding drops a bordered card below the row (top border theme-400,\n * rounded-top-none, px-5 py-3).\n *\n * Structural colours are tokens. The status dot uses the two status tokens that\n * already exist in GlobalStyle (`--color-sucess-green` = #64cd93 and\n * `--red-alert` = #ed6161), which are the exact hexes the app hardcodes.\n */\nimport React, { ReactElement, ReactNode, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MONO, SM } from \"./tokens\";\nimport { Card } from \"../../components/Card\";\nimport { Dialog } from \"../../components/Dialog\";\nimport { Dot } from \"../../components/Dot\";\nimport { CollapseExpandSingleIcon } from \"../../components/Icons\";\nimport { Link } from \"../../components/Links\";\nimport { Trigger } from \"../../components/Trigger\";\nimport { Body2 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* The dialog */\n/* ------------------------------------------------------------------ */\n\n/**\n * The scroll body inside the dialog. Cards and the dialog share\n * `--page-paper-main`, so the rows would be invisible on the dialog paper; the\n * app remaps the descendants' paper surface to the body surface and kills the\n * card shadow, exactly like SelfHostedSettingsDialog's DIALOG_CONTENT. The rows\n * then read as flat tiles separated by their rounding and the 8px gaps.\n */\nconst Stack = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n\n --page-paper-main: var(--body-bg-main);\n --shadow-tertiary: none;\n --shadow-tertiary-hover: none;\n`;\n\nexport interface SelfHostedSettingsDialogProps {\n /** The rows (usually the section stack). */\n children: ReactNode;\n /** Optional close handler; defaults to a no-op for the mock. */\n onClose?: () => void;\n}\n\nexport const SelfHostedSettingsDialog = ({\n children,\n onClose,\n}: SelfHostedSettingsDialogProps): ReactElement => {\n const close = onClose ?? ((): void => undefined);\n\n return (\n <Dialog open size=\"xxl\" height=\"95%\" onClose={close} enableBackgroundClick>\n <Dialog.Title onClose={close}>Self-Hosted Settings</Dialog.Title>\n <Dialog.ContentDivider />\n <Dialog.Content>\n <Stack>{children}</Stack>\n </Dialog.Content>\n </Dialog>\n );\n};\n\n/* ------------------------------------------------------------------ */\n/* Status dot (mirrors the app `Dot color={ok ? green : red} size={12}`) */\n/* ------------------------------------------------------------------ */\n\n/**\n * ok = green, info = blue (something to act on that isn't an error, e.g. an\n * update is available), problem = red (errors only).\n */\nexport type SettingStatus = \"ok\" | \"info\" | \"problem\";\n\nconst STATUS_COLOR: Record<SettingStatus, string> = {\n ok: \"var(--color-sucess-green)\",\n info: \"var(--color-progress-blue)\",\n problem: \"var(--red-alert)\",\n};\n\nexport const StatusDot = ({\n status,\n}: {\n status: SettingStatus;\n}): ReactElement => <Dot color={STATUS_COLOR[status]} size={12} />;\n\n/** Maps a payload `*_is_ok` flag to the dot status (the app's green / red). */\nexport const okStatus = (ok: boolean): SettingStatus => (ok ? \"ok\" : \"problem\");\n\n/* ------------------------------------------------------------------ */\n/* Expandable setting row */\n/* ------------------------------------------------------------------ */\n\n/** The clickable header card. Mirrors SettingRow.jsx's ROW_CLASS. */\nconst HeaderCard = styled(Card)<{ $expanded: boolean; $clickable: boolean }>`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n min-height: 68px;\n padding: 12px 16px 12px 20px;\n cursor: ${({ $clickable }) => ($clickable ? \"pointer\" : \"default\")};\n\n @media (min-width: ${SM}) {\n flex-direction: row;\n align-items: center;\n }\n\n ${({ $expanded }) =>\n $expanded\n ? `\n box-shadow: none;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n `\n : \"\"}\n`;\n\nconst LabelCol = styled.div<{ $wraps: boolean }>`\n display: flex;\n flex: 1 1 0%;\n min-width: 0;\n padding-right: 12px;\n ${({ $wraps }) =>\n $wraps\n ? \"\"\n : `\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n `}\n`;\n\nconst Controls = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n flex-shrink: 0;\n`;\n\nconst Caret = styled.span<{ $expanded: boolean; $dimmed: boolean }>`\n display: inline-flex;\n transition: transform 200ms ease;\n transform: rotate(${({ $expanded }) => ($expanded ? \"0deg\" : \"180deg\")});\n opacity: ${({ $dimmed }) => ($dimmed ? 0.5 : 1)};\n`;\n\n/** The card that drops below an expanded row. Mirrors the app expand `Card`. */\nexport const SettingExpandCard = styled(Card)`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-height: 48px;\n padding: 12px 20px;\n border-top: 1px solid var(--color-theme-400);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n box-shadow: none;\n`;\n\nconst RowWrap = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 8px;\n`;\n\n/** Full-width DS Trigger around the header, like the app's `tw-w-full`. */\nconst RowTrigger = styled(Trigger)`\n display: block;\n width: 100%;\n text-align: left;\n`;\n\nexport interface ExpandableSettingRowProps {\n /** Row label — a section name, or the version sentence. */\n label: ReactNode;\n /** Status dot on the right; omit for a row with no status (rare). */\n status?: SettingStatus;\n /** Extra control shown left of the dot, e.g. the Email Log button. */\n right?: ReactNode;\n /** Let the label wrap onto a second line (the version sentence does). */\n wraps?: boolean;\n /** Whether the row can expand. A latest-stable version row cannot. */\n expandable?: boolean;\n /** Start expanded (each story pins the state it wants to show). */\n defaultExpanded?: boolean;\n /** The expand content (rendered in a `SettingExpandCard`). */\n children?: ReactNode;\n}\n\nexport const ExpandableSettingRow = ({\n label,\n status,\n right,\n wraps = false,\n expandable = true,\n defaultExpanded = false,\n children,\n}: ExpandableSettingRowProps): ReactElement => {\n const [expanded, setExpanded] = useState(expandable && defaultExpanded);\n const open = expandable && expanded;\n\n return (\n <RowWrap>\n {/* A row with its own control (Email Log) renders the Trigger as a div,\n like the app's `as=\"div\"`, so the link isn't nested in a button.\n Trigger's props type omits `as`, hence the cast. */}\n <RowTrigger\n {...((right ? { forwardedAs: \"div\" } : {}) as object)}\n disabled={!expandable}\n onClick={(): void => setExpanded((prev) => !prev)}\n >\n <HeaderCard variant=\"paper-2\" $expanded={open} $clickable={expandable}>\n <LabelCol $wraps={wraps}>\n {typeof label === \"string\" ? <Body2>{label}</Body2> : label}\n </LabelCol>\n <Controls>\n {right}\n {status ? <StatusDot status={status} /> : null}\n <Caret $expanded={open} $dimmed={!expandable}>\n <CollapseExpandSingleIcon />\n </Caret>\n </Controls>\n </HeaderCard>\n </RowTrigger>\n {open ? (\n <SettingExpandCard variant=\"paper-2\">{children}</SettingExpandCard>\n ) : null}\n </RowWrap>\n );\n};\n\n/* ------------------------------------------------------------------ */\n/* Inline / block command (SSH + CLI fallback). Uses the shared MONO */\n/* face; mirrors the app <pre> on --color-primary-300. */\n/* ------------------------------------------------------------------ */\n\n// ds-exception: monospace command text uses the shared MONO constant (AGENTS\n// rule 4 — commands are code, not Typography prose).\nexport const CommandCode = styled.code`\n font-family: ${MONO};\n font-size: 13px;\n line-height: 20px;\n background-color: var(--color-primary-300);\n color: var(--color-theme-900);\n padding: 2px 6px;\n border-radius: var(--ac-br-4);\n white-space: pre-wrap;\n word-break: break-all;\n`;\n\n/* ------------------------------------------------------------------ */\n/* Cron jobs expand content (CronConfiguration.js: status + last runs) */\n/* ------------------------------------------------------------------ */\n\nconst CronField = styled.div`\n margin-bottom: 8px;\n`;\n\nexport interface CronJobsBodyProps {\n /** mirrors: GET /system-status `cron_errors`. */\n errors: string[];\n /** Formatted \"Executed …\" text per job, or null for \"Never executed\". */\n hourly: string | null;\n frequently: string | null;\n imap: string | null;\n}\n\nexport const CronJobsBody = ({\n errors,\n hourly,\n frequently,\n imap,\n}: CronJobsBodyProps): ReactElement => (\n <>\n <CronField>\n <Body2>Status:</Body2>\n <Body2 color={errors.length > 0 ? \"alert\" : \"tertiary\"}>\n {errors.length > 0\n ? errors.join(\",\\n\")\n : \"Configured and working properly\"}\n </Body2>\n </CronField>\n {(\n [\n [\"Hourly Job\", hourly],\n [\"Frequently Job\", frequently],\n [\"IMAP Job\", imap],\n ] as const\n ).map(([label, value]) => (\n <CronField key={label}>\n <Body2>{label}:</Body2>\n <Body2 color=\"tertiary\">\n {value ? `Executed ${value}` : \"Never executed\"}\n </Body2>\n </CronField>\n ))}\n </>\n);\n\n/* ------------------------------------------------------------------ */\n/* The five non-version section rows, healthy. Shared by the baseline */\n/* stack and every Phase B upgrade story so the chrome around the */\n/* Version row is defined once (AGENTS rule 6). */\n/* ------------------------------------------------------------------ */\n\n/** The Email Log button that sits on the \"Sending and receiving email\" row. */\nexport const EmailLogLink = (): ReactElement => (\n <Link\n href=\"#\"\n target=\"_blank\"\n rel=\"noreferrer\"\n variant=\"outlined\"\n onClick={(event): void => event.stopPropagation()}\n >\n Email Log\n </Link>\n);\n\n/** A row's status + optional expand content (and whether it starts open). */\nexport interface SectionRowState {\n status: SettingStatus;\n content?: ReactNode;\n defaultExpanded?: boolean;\n}\n\nexport interface OtherSectionRowsProps {\n /**\n * Old Versions status + optional expand content. Defaults to a healthy,\n * collapsed row (the state every Phase B upgrade story assumes).\n */\n oldVersions?: SectionRowState;\n /** Cron jobs status + expand content; defaults to healthy and collapsed. */\n cron?: SectionRowState;\n}\n\nexport const OtherSectionRows = ({\n oldVersions,\n cron,\n}: OtherSectionRowsProps): ReactElement => (\n <>\n <ExpandableSettingRow\n label=\"Sending and receiving email\"\n status=\"ok\"\n right={<EmailLogLink />}\n />\n <ExpandableSettingRow label=\"Document search\" status=\"ok\" />\n <ExpandableSettingRow label=\"Pusher configuration\" status=\"ok\" />\n <ExpandableSettingRow\n label=\"Cron jobs\"\n status={cron?.status ?? \"ok\"}\n defaultExpanded={cron?.defaultExpanded}\n >\n {cron?.content}\n </ExpandableSettingRow>\n <ExpandableSettingRow\n label=\"Old Versions\"\n status={oldVersions?.status ?? \"ok\"}\n defaultExpanded={oldVersions?.defaultExpanded}\n >\n {oldVersions?.content}\n </ExpandableSettingRow>\n </>\n);\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAA6BC,QAAQ,QAAQ,OAAO;AAEhE,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,IAAI,EAAEC,EAAE,QAAQ,U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