@flamingo-stack/openframe-frontend-core 0.0.649 → 0.0.650-2249.6503.1
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/{chunk-4OAG7752.js → chunk-2A4JZVMT.js} +5 -5
- package/dist/{chunk-QVKRSUGB.js → chunk-2PC6MKQH.js} +2 -2
- package/dist/{chunk-QFWZIXJ3.cjs → chunk-5I26XCV7.cjs} +75 -75
- package/dist/{chunk-QFWZIXJ3.cjs.map → chunk-5I26XCV7.cjs.map} +1 -1
- package/dist/{chunk-742HTNAE.cjs → chunk-6K443SPW.cjs} +3 -3
- package/dist/{chunk-742HTNAE.cjs.map → chunk-6K443SPW.cjs.map} +1 -1
- package/dist/{chunk-KUCBDDQB.cjs → chunk-AGZFD55L.cjs} +264 -251
- package/dist/chunk-AGZFD55L.cjs.map +1 -0
- package/dist/{chunk-YCBGEHWC.cjs → chunk-B3IUSVCW.cjs} +3 -3
- package/dist/{chunk-YCBGEHWC.cjs.map → chunk-B3IUSVCW.cjs.map} +1 -1
- package/dist/{chunk-JYFCKQ2K.cjs → chunk-BOM2HBHL.cjs} +22 -22
- package/dist/{chunk-JYFCKQ2K.cjs.map → chunk-BOM2HBHL.cjs.map} +1 -1
- package/dist/{chunk-IEM2Z6K6.js → chunk-C5VTNKJM.js} +3 -36
- package/dist/chunk-C5VTNKJM.js.map +1 -0
- package/dist/{chunk-OWPMODYT.cjs → chunk-EKAWIHWW.cjs} +5 -5
- package/dist/{chunk-OWPMODYT.cjs.map → chunk-EKAWIHWW.cjs.map} +1 -1
- package/dist/{chunk-MAFPT6GS.js → chunk-F5JDGABB.js} +6 -6
- package/dist/{chunk-Y5EEPXT3.cjs → chunk-FAI7EM3M.cjs} +33 -33
- package/dist/{chunk-Y5EEPXT3.cjs.map → chunk-FAI7EM3M.cjs.map} +1 -1
- package/dist/{chunk-CZVFFD3P.js → chunk-FMHWXJTS.js} +5 -5
- package/dist/{chunk-EUGIXBAC.cjs → chunk-FQMTXQVA.cjs} +10 -10
- package/dist/{chunk-EUGIXBAC.cjs.map → chunk-FQMTXQVA.cjs.map} +1 -1
- package/dist/{chunk-H6ND7FKB.js → chunk-G4SRBTQU.js} +5 -5
- package/dist/{chunk-M2FFL6OG.cjs → chunk-GB3XKBGQ.cjs} +25 -25
- package/dist/{chunk-M2FFL6OG.cjs.map → chunk-GB3XKBGQ.cjs.map} +1 -1
- package/dist/{chunk-C3CJJC2A.cjs → chunk-GBX3O3JH.cjs} +7 -7
- package/dist/{chunk-C3CJJC2A.cjs.map → chunk-GBX3O3JH.cjs.map} +1 -1
- package/dist/{chunk-J5VVA2KW.js → chunk-HARP2A2N.js} +2 -2
- package/dist/{chunk-QVAFZGCF.js → chunk-HEUEBWO5.js} +7 -7
- package/dist/{chunk-EDDAU2BP.cjs → chunk-INQB4FZL.cjs} +44 -44
- package/dist/{chunk-EDDAU2BP.cjs.map → chunk-INQB4FZL.cjs.map} +1 -1
- package/dist/{chunk-RHJ4NU3W.js → chunk-K3BURZ3O.js} +2 -2
- package/dist/{chunk-XIBBDYJK.cjs → chunk-KAC6ABZO.cjs} +5 -5
- package/dist/{chunk-XIBBDYJK.cjs.map → chunk-KAC6ABZO.cjs.map} +1 -1
- package/dist/{chunk-J2T3XDZX.js → chunk-LR5XP4KF.js} +4 -4
- package/dist/{chunk-O3B34KLC.js → chunk-MHVFDFJ2.js} +20 -7
- package/dist/{chunk-O3B34KLC.js.map → chunk-MHVFDFJ2.js.map} +1 -1
- package/dist/{chunk-N72F2XWZ.cjs → chunk-PA5QD6QG.cjs} +10 -10
- package/dist/{chunk-N72F2XWZ.cjs.map → chunk-PA5QD6QG.cjs.map} +1 -1
- package/dist/{chunk-MB33V5S6.cjs → chunk-REPEHHLV.cjs} +51 -51
- package/dist/{chunk-MB33V5S6.cjs.map → chunk-REPEHHLV.cjs.map} +1 -1
- package/dist/{chunk-OHNBWBZH.js → chunk-RI6HFWFU.js} +3 -3
- package/dist/{chunk-DVD4CMKB.js → chunk-RSZZNNT5.js} +3 -3
- package/dist/{chunk-W554ING6.cjs → chunk-RYPOHTIC.cjs} +12 -12
- package/dist/{chunk-W554ING6.cjs.map → chunk-RYPOHTIC.cjs.map} +1 -1
- package/dist/{chunk-MXGGYW2R.js → chunk-SDSPMPU7.js} +7 -7
- package/dist/{chunk-QG3ZNNKG.js → chunk-THYPIZMJ.js} +2 -2
- package/dist/{chunk-KQGTQXG2.js → chunk-UN4GDSG6.js} +2 -2
- package/dist/{chunk-W7KFDHIU.cjs → chunk-USG77B7Q.cjs} +37 -37
- package/dist/{chunk-W7KFDHIU.cjs.map → chunk-USG77B7Q.cjs.map} +1 -1
- package/dist/{chunk-C4VPCRSI.js → chunk-WEADSSWN.js} +4 -4
- package/dist/{chunk-PSXUY4K5.cjs → chunk-ZEEAQ3RO.cjs} +2 -35
- package/dist/chunk-ZEEAQ3RO.cjs.map +1 -0
- package/dist/{chunk-UOOXFD74.js → chunk-ZFKKV7H2.js} +3 -3
- package/dist/{chunk-OE6KUWRA.cjs → chunk-ZWTMJMFP.cjs} +25 -25
- package/dist/{chunk-OE6KUWRA.cjs.map → chunk-ZWTMJMFP.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/board/types.d.ts +1 -1
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts +3 -1
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.d.ts +7 -1
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +25 -25
- package/dist/components/help-center-pages/index.js +16 -16
- package/dist/components/icons/index.cjs +2 -4
- package/dist/components/icons/index.cjs.map +1 -1
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/icons/index.js +1 -3
- package/dist/components/index.cjs +42 -44
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +28 -28
- package/dist/components/meeting-scheduler/index.js +4 -4
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/ui/index.cjs +5 -5
- package/dist/components/ui/index.js +4 -4
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +9 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/features/board/types.ts +1 -1
- package/src/components/features/notifications/approval-request-notification-tile.tsx +4 -0
- package/src/components/features/notifications/notification-tile.tsx +14 -1
- package/src/components/icons/index.ts +0 -1
- package/src/components/shared/doc-search/__tests__/map-doc-search-results.test.ts +10 -11
- package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +18 -60
- package/src/stories/NotificationDrawer.stories.tsx +39 -0
- package/src/stories/TicketCard.stories.tsx +1 -1
- package/dist/chunk-IEM2Z6K6.js.map +0 -1
- package/dist/chunk-KUCBDDQB.cjs.map +0 -1
- package/dist/chunk-PSXUY4K5.cjs.map +0 -1
- package/dist/components/icons/pilot-icon.d.ts +0 -7
- package/dist/components/icons/pilot-icon.d.ts.map +0 -1
- package/src/components/icons/.pilot-icon.md +0 -23
- package/src/components/icons/pilot-icon.tsx +0 -32
- /package/dist/{chunk-4OAG7752.js.map → chunk-2A4JZVMT.js.map} +0 -0
- /package/dist/{chunk-QVKRSUGB.js.map → chunk-2PC6MKQH.js.map} +0 -0
- /package/dist/{chunk-MAFPT6GS.js.map → chunk-F5JDGABB.js.map} +0 -0
- /package/dist/{chunk-CZVFFD3P.js.map → chunk-FMHWXJTS.js.map} +0 -0
- /package/dist/{chunk-H6ND7FKB.js.map → chunk-G4SRBTQU.js.map} +0 -0
- /package/dist/{chunk-J5VVA2KW.js.map → chunk-HARP2A2N.js.map} +0 -0
- /package/dist/{chunk-QVAFZGCF.js.map → chunk-HEUEBWO5.js.map} +0 -0
- /package/dist/{chunk-RHJ4NU3W.js.map → chunk-K3BURZ3O.js.map} +0 -0
- /package/dist/{chunk-J2T3XDZX.js.map → chunk-LR5XP4KF.js.map} +0 -0
- /package/dist/{chunk-OHNBWBZH.js.map → chunk-RI6HFWFU.js.map} +0 -0
- /package/dist/{chunk-DVD4CMKB.js.map → chunk-RSZZNNT5.js.map} +0 -0
- /package/dist/{chunk-MXGGYW2R.js.map → chunk-SDSPMPU7.js.map} +0 -0
- /package/dist/{chunk-QG3ZNNKG.js.map → chunk-THYPIZMJ.js.map} +0 -0
- /package/dist/{chunk-KQGTQXG2.js.map → chunk-UN4GDSG6.js.map} +0 -0
- /package/dist/{chunk-C4VPCRSI.js.map → chunk-WEADSSWN.js.map} +0 -0
- /package/dist/{chunk-UOOXFD74.js.map → chunk-ZFKKV7H2.js.map} +0 -0
|
@@ -45,6 +45,12 @@ export interface NotificationTileProps {
|
|
|
45
45
|
children?: ReactNode;
|
|
46
46
|
/** Pin the tile: cancel the live auto-dismiss countdown (timer + progress bar) without settling it. */
|
|
47
47
|
paused?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Lines the title may take before it is cut with an ellipsis. `1` (default)
|
|
50
|
+
* keeps drawer rows one height; a narrow host that cannot widen (a
|
|
51
|
+
* watch-face mock, a side rail) passes `2` so the title is read, not cut.
|
|
52
|
+
*/
|
|
53
|
+
titleLines?: 1 | 2;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
export function NotificationTile({
|
|
@@ -56,6 +62,7 @@ export function NotificationTile({
|
|
|
56
62
|
actions,
|
|
57
63
|
children,
|
|
58
64
|
paused = false,
|
|
65
|
+
titleLines = 1,
|
|
59
66
|
}: NotificationTileProps) {
|
|
60
67
|
const {
|
|
61
68
|
id,
|
|
@@ -181,7 +188,13 @@ export function NotificationTile({
|
|
|
181
188
|
|
|
182
189
|
<div className="flex min-w-0 flex-col">
|
|
183
190
|
{title ? (
|
|
184
|
-
<p
|
|
191
|
+
<p
|
|
192
|
+
className={cn(
|
|
193
|
+
'text-ods-text-primary text-h4',
|
|
194
|
+
titleLines === 2 ? 'line-clamp-2 break-words' : 'truncate',
|
|
195
|
+
)}
|
|
196
|
+
title={typeof title === 'string' ? title : undefined}
|
|
197
|
+
>
|
|
185
198
|
{title}
|
|
186
199
|
</p>
|
|
187
200
|
) : null}
|
|
@@ -19,17 +19,16 @@ const FOLDED_TABLES = [
|
|
|
19
19
|
'financial-cash-flow',
|
|
20
20
|
];
|
|
21
21
|
|
|
22
|
-
const row = (sourceRepo: string, n: number): DocSearchResult =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}) as DocSearchResult;
|
|
22
|
+
const row = (sourceRepo: string, n: number): DocSearchResult => ({
|
|
23
|
+
path: `${sourceRepo}/${n}`,
|
|
24
|
+
name: `Row ${n}`,
|
|
25
|
+
snippet: '',
|
|
26
|
+
type: 'file',
|
|
27
|
+
matchType: 'content',
|
|
28
|
+
documentType: 'cap_table',
|
|
29
|
+
sourceRepo,
|
|
30
|
+
entityId: `${n}`,
|
|
31
|
+
});
|
|
33
32
|
|
|
34
33
|
describe('mapDocSearchResults', () => {
|
|
35
34
|
it.each(FOLDED_TABLES)('titles the folded %s row with its shared label and count', table => {
|
|
@@ -258,39 +258,18 @@ exports[`RichMarkdownRenderer golden parity > renders fixture: loose-ordered-lis
|
|
|
258
258
|
`;
|
|
259
259
|
|
|
260
260
|
exports[`RichMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
261
|
-
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container my-6
|
|
261
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container relative my-6 rounded-lg border border-ods-border bg-ods-card p-4 md:p-6 lg:p-8"><style>
|
|
262
|
+
/* The pan surface is a scroll region with NO scrollbars: drag, wheel,
|
|
263
|
+
arrows and the toolbar move it (a canvas, the way dbdiagram, Figma and
|
|
264
|
+
Excalidraw draw one). Two mechanisms for one motion read as a bug. */
|
|
265
|
+
.mermaid-frame-pan { scrollbar-width: none; -ms-overflow-style: none; }
|
|
266
|
+
.mermaid-frame-pan::-webkit-scrollbar { display: none; }
|
|
262
267
|
.mermaid-svg-container svg {
|
|
263
|
-
max-width: 100
|
|
264
|
-
height: auto
|
|
265
|
-
min-height: 200px;
|
|
268
|
+
max-width: 100%;
|
|
269
|
+
height: auto;
|
|
266
270
|
font-family: 'DM Sans', sans-serif !important;
|
|
267
271
|
font-size: 14px !important;
|
|
268
272
|
}
|
|
269
|
-
@media (min-width: 1520px) {
|
|
270
|
-
.mermaid-svg-container svg {
|
|
271
|
-
max-width: 900px !important;
|
|
272
|
-
max-height: 700px !important;
|
|
273
|
-
min-height: 300px;
|
|
274
|
-
font-size: 16px !important;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
@media (min-width: 768px) and (max-width: 1519px) {
|
|
278
|
-
.mermaid-svg-container svg {
|
|
279
|
-
max-width: 700px !important;
|
|
280
|
-
max-height: 600px !important;
|
|
281
|
-
min-height: 250px;
|
|
282
|
-
font-size: 15px !important;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
@media (max-width: 767px) {
|
|
286
|
-
.mermaid-svg-container svg {
|
|
287
|
-
max-width: 90vw !important;
|
|
288
|
-
max-height: 400px !important;
|
|
289
|
-
min-height: 200px;
|
|
290
|
-
font-size: 13px !important;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
.mermaid-svg-container svg[width] { width: 100% !important; }
|
|
294
273
|
.mermaid-svg-container .node rect,
|
|
295
274
|
.mermaid-svg-container .node circle,
|
|
296
275
|
.mermaid-svg-container .node ellipse,
|
|
@@ -304,7 +283,7 @@ exports[`RichMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
|
304
283
|
.mermaid-svg-container .node text,
|
|
305
284
|
.mermaid-svg-container .edgeLabel text { font-size: 16px !important; }
|
|
306
285
|
}
|
|
307
|
-
</style><div class="flex
|
|
286
|
+
</style><div class="absolute right-2 top-2 z-10 flex items-center gap-[var(--spacing-system-xxs)] rounded-md bg-ods-card" role="group" aria-label="Diagram zoom"><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom out" title="Zoom out (−, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-out"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-6 px-[var(--spacing-system-sf)] py-0 font-normal text-h6 [&_svg]:h-3.5 [&_svg]:w-3.5" disabled="" aria-label="Reset zoom" title="Back to 100% (0)"><span class="contents">100%</span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom in" title="Zoom in (+, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-in"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="11" x2="11" y1="8" y2="14"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Fit to frame" title="Fit the whole diagram in the frame (f)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></span></button></div><div class="min-h-[200px] max-h-[70svh] md:min-h-[250px] flex w-full overflow-auto outline-none focus-visible:ring-1 focus-visible:ring-ods-accent mermaid-frame-pan select-none cursor-grab" style="justify-content: safe center; align-items: safe center;" data-testid="mermaid-frame" data-frame="content" tabindex="0" role="region" aria-label="Diagram. Drag to pan; Ctrl or Cmd plus wheel, or + and -, to zoom; 0 resets; f fits." title="Drag to pan · ⌘/Ctrl + wheel to zoom"><div class="mermaid-svg-container flex shrink-0 justify-center" data-testid="mermaid-svg-container" data-zoom="1" style="font-size: 14px; width: 100%;"><svg data-mock-mermaid="true" width="100" height="50"></svg></div></div></div></pre></article></div></div>"
|
|
308
287
|
`;
|
|
309
288
|
|
|
310
289
|
exports[`RichMarkdownRenderer golden parity > renders fixture: mismatched-fence-carve-does-not-shelter-opener 1`] = `
|
|
@@ -1420,39 +1399,18 @@ exports[`SimpleMarkdownRenderer golden parity > renders fixture: loose-ordered-l
|
|
|
1420
1399
|
`;
|
|
1421
1400
|
|
|
1422
1401
|
exports[`SimpleMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
1423
|
-
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container my-6
|
|
1402
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container relative my-6 rounded-lg border border-ods-border bg-ods-card p-4 md:p-6 lg:p-8"><style>
|
|
1403
|
+
/* The pan surface is a scroll region with NO scrollbars: drag, wheel,
|
|
1404
|
+
arrows and the toolbar move it (a canvas, the way dbdiagram, Figma and
|
|
1405
|
+
Excalidraw draw one). Two mechanisms for one motion read as a bug. */
|
|
1406
|
+
.mermaid-frame-pan { scrollbar-width: none; -ms-overflow-style: none; }
|
|
1407
|
+
.mermaid-frame-pan::-webkit-scrollbar { display: none; }
|
|
1424
1408
|
.mermaid-svg-container svg {
|
|
1425
|
-
max-width: 100
|
|
1426
|
-
height: auto
|
|
1427
|
-
min-height: 200px;
|
|
1409
|
+
max-width: 100%;
|
|
1410
|
+
height: auto;
|
|
1428
1411
|
font-family: 'DM Sans', sans-serif !important;
|
|
1429
1412
|
font-size: 14px !important;
|
|
1430
1413
|
}
|
|
1431
|
-
@media (min-width: 1520px) {
|
|
1432
|
-
.mermaid-svg-container svg {
|
|
1433
|
-
max-width: 900px !important;
|
|
1434
|
-
max-height: 700px !important;
|
|
1435
|
-
min-height: 300px;
|
|
1436
|
-
font-size: 16px !important;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
@media (min-width: 768px) and (max-width: 1519px) {
|
|
1440
|
-
.mermaid-svg-container svg {
|
|
1441
|
-
max-width: 700px !important;
|
|
1442
|
-
max-height: 600px !important;
|
|
1443
|
-
min-height: 250px;
|
|
1444
|
-
font-size: 15px !important;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
@media (max-width: 767px) {
|
|
1448
|
-
.mermaid-svg-container svg {
|
|
1449
|
-
max-width: 90vw !important;
|
|
1450
|
-
max-height: 400px !important;
|
|
1451
|
-
min-height: 200px;
|
|
1452
|
-
font-size: 13px !important;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
.mermaid-svg-container svg[width] { width: 100% !important; }
|
|
1456
1414
|
.mermaid-svg-container .node rect,
|
|
1457
1415
|
.mermaid-svg-container .node circle,
|
|
1458
1416
|
.mermaid-svg-container .node ellipse,
|
|
@@ -1466,7 +1424,7 @@ exports[`SimpleMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
|
1466
1424
|
.mermaid-svg-container .node text,
|
|
1467
1425
|
.mermaid-svg-container .edgeLabel text { font-size: 16px !important; }
|
|
1468
1426
|
}
|
|
1469
|
-
</style><div class="flex
|
|
1427
|
+
</style><div class="absolute right-2 top-2 z-10 flex items-center gap-[var(--spacing-system-xxs)] rounded-md bg-ods-card" role="group" aria-label="Diagram zoom"><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom out" title="Zoom out (−, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-out"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-6 px-[var(--spacing-system-sf)] py-0 font-normal text-h6 [&_svg]:h-3.5 [&_svg]:w-3.5" disabled="" aria-label="Reset zoom" title="Back to 100% (0)"><span class="contents">100%</span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom in" title="Zoom in (+, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-in"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="11" x2="11" y1="8" y2="14"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Fit to frame" title="Fit the whole diagram in the frame (f)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></span></button></div><div class="min-h-[200px] max-h-[70svh] md:min-h-[250px] flex w-full overflow-auto outline-none focus-visible:ring-1 focus-visible:ring-ods-accent mermaid-frame-pan select-none cursor-grab" style="justify-content: safe center; align-items: safe center;" data-testid="mermaid-frame" data-frame="content" tabindex="0" role="region" aria-label="Diagram. Drag to pan; Ctrl or Cmd plus wheel, or + and -, to zoom; 0 resets; f fits." title="Drag to pan · ⌘/Ctrl + wheel to zoom"><div class="mermaid-svg-container flex shrink-0 justify-center" data-testid="mermaid-svg-container" data-zoom="1" style="font-size: 14px; width: 100%;"><svg data-mock-mermaid="true" width="100" height="50"></svg></div></div></div></pre></article></div></div>"
|
|
1470
1428
|
`;
|
|
1471
1429
|
|
|
1472
1430
|
exports[`SimpleMarkdownRenderer golden parity > renders fixture: mismatched-fence-carve-does-not-shelter-opener 1`] = `
|
|
@@ -242,6 +242,45 @@ export const AllTileVariants: Story = {
|
|
|
242
242
|
},
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
+
/**
|
|
246
|
+
* `titleLines={2}` for a narrow host that cannot widen (here a 280px column,
|
|
247
|
+
* the width of a watch-face mock): the title wraps to a second line before
|
|
248
|
+
* the ellipsis instead of being cut after a few words.
|
|
249
|
+
*/
|
|
250
|
+
export const TwoLineTitleInNarrowHost: Story = {
|
|
251
|
+
render: () => {
|
|
252
|
+
const base = { createdAt: Date.now() - 60_000, read: true } as const;
|
|
253
|
+
const title = 'Disk filling 4x faster than normal on ACME-DC01';
|
|
254
|
+
return (
|
|
255
|
+
<div className="flex w-[280px] flex-col gap-2">
|
|
256
|
+
<NotificationTile
|
|
257
|
+
notification={{
|
|
258
|
+
id: 't-one-line',
|
|
259
|
+
variant: 'success',
|
|
260
|
+
type: 'Fixed by Mingo',
|
|
261
|
+
title,
|
|
262
|
+
description: 'titleLines={1} (default)',
|
|
263
|
+
...base,
|
|
264
|
+
}}
|
|
265
|
+
onComplete={() => {}}
|
|
266
|
+
/>
|
|
267
|
+
<NotificationTile
|
|
268
|
+
notification={{
|
|
269
|
+
id: 't-two-lines',
|
|
270
|
+
variant: 'success',
|
|
271
|
+
type: 'Fixed by Mingo',
|
|
272
|
+
title,
|
|
273
|
+
description: 'titleLines={2}',
|
|
274
|
+
...base,
|
|
275
|
+
}}
|
|
276
|
+
onComplete={() => {}}
|
|
277
|
+
titleLines={2}
|
|
278
|
+
/>
|
|
279
|
+
</div>
|
|
280
|
+
);
|
|
281
|
+
},
|
|
282
|
+
};
|
|
283
|
+
|
|
245
284
|
/**
|
|
246
285
|
* The new header fields: `severity` colors the type label and icon slot
|
|
247
286
|
* (INFO grey, WARNING amber, DANGER red) and overrides `variant`; `imageUrl`
|
|
@@ -166,7 +166,7 @@ export const ActivityIndicators: Story = {
|
|
|
166
166
|
{ kind: 'ai-working' },
|
|
167
167
|
{ kind: 'user-typing' },
|
|
168
168
|
{ kind: 'waiting-external' },
|
|
169
|
-
{ kind: 'stale', label: 'No activity for
|
|
169
|
+
{ kind: 'stale', label: 'No activity for 30 minutes' },
|
|
170
170
|
];
|
|
171
171
|
return (
|
|
172
172
|
<div className="flex w-[320px] flex-col gap-[var(--spacing-system-sf)] rounded-lg bg-ods-card p-[var(--spacing-system-sf)]">
|